Nvim
I can’t find any comprehensive guide on deploying Phoenix on a VPS with PostgreSQL, Nginx, Ubuntu 18.04. Anybody knows?
Trending in Questions
I’m working on a project that simulates the bumbl example in the programming phoenix book. It acts almost like an email client. We have a...
New
Hello,
I know there is an approach for handling lists that allows for optimized traversal, but I can’t recall the specific method (somet...
New
I’m seeing that a list inside a Kino.DataTable will be interpreted as a charlist, even if the Kino.configure() is set to charlists: :as_l...
New
So my question is quite simple and i have found no conclusive answer on forum, google or AI.
Should we use :erlang.float for Integer to ...
New
Documentation
While reading the Scoped Routes section, I noticed that the documentation currently refers to a problem without explainin...
New
Hi, I’ve just set up an application with ash_authentication. There is only magic link strategy for now, so there is no confirmation add o...
New
If a change or preparation module uses Ash.Changeset.get_argument/2 or Ash.Query.get_argument/2 (or any of the other get_argument functio...
New
Other Trending Topics
I am happy to introduce the very α version of the new programming language compiled to BEAM.
Welcome Cure.
It has literally three kille...
New
Hi there! We created Gust: A task orchestrator inspired by Airflow.
For those who have never heard about Aiflow, it’s a Python-based wor...
New
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
Xamal is a deployment tool for Elixir apps that deploys native releases to bare metal servers over SSH. It’s a port of GitHub - basecamp/...
New
Corex is an accessible, unstyled UI component library for Phoenix that integrates Zag.js state machines using Vanilla JavaScript and Live...
New
With AI doing more of the implementation work, I’ve been wondering how much coding I should deliberately keep doing myself.
My main conc...
New
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #library
- #deployment
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #elixirconf
- #channels
- #exunit
- #discussion
- #code-sync
- #podcasts
- #javascript
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixirconf-us
- #ai
- #blog-post
- #elixir-ls
- #phoenix_html
- #iex
- #graphql
- #genstage
- #websockets
- #supervisor
- #advent-of-code
- #distillery
- #processes
- #api
- #forms
- #hex
- #security
- #metaprogramming










Showing Posts 37 to 28- Show Best Posts
- Show All (oldest first)
- Show All (newest first)
AlchemistCamp
Use @OvermindDL1’s pid_file.ex for that. Here’s my setup: Elixir learning: How to generate a Pid-File for an Elixir app
juanagua
After running phx.server on detached mode, I can its id using ps command. How do I find phx.server’s id quickly just I need to use kill command o stop it? Also is it better to put phx.server on systemd? Any examples on putting phxserver on systemd?
Exadra37
I use Docker a lot for my development workflow, but never to release and deploy to production, thus I have a lot of catch-up to do here
For now I will keep the Elixir Docker Stack with focus on an easy development workflow, and with the option for compiling Erlang, Elixir and Phoenix from their git repos.
Later I will look if it makes sense to wrap docker swarm and the docker compose file
OvermindDL1
Yep, docker-swarm does the orchestration, it allows you to deploy to many systems at once, a specific system of a specific types, etc… etc… etc…
It uses docker-compose to actually do the setup on the remote systems after it’s deployed it.
And docker-compose uses docker to containerize.
It’s just a lot of layers, like an onion or an ogre. ^.^
Exadra37
Oh I was not aware of this bit, but I know about using docker-compose to instruct docker how to do the containerization.
OvermindDL1
Yes, that’s what Docker Swarm does, it can deploy into remote systems.

Docker-Compose defines how it is setup and what it links with.
And Docker itself does the containerization handling.
They are all installed with docker itself as they are just other parts of the docker ecosystem.
Exadra37
I mean to deploy into the server, not on the server
OvermindDL1
I don’t even make a wrapper because I make a different tag much of the time (so I have a couple old versions around in case I need to switch back to them quickly), it’s simple enough as it is.
I use docker swarm with docker compose for that, so it’s still docker. ^.^
Exadra37
You mean that docker does
docker build --tag organization/project:tag .?So this is what I want to wrap in the Elixir Docker Stack, plus the build arguments. Basically just a simple wrapper around this command, that will use a Docker image in the root of the project or a default one provided by the stack.
When i used the term
deployI was not referring todocker deploy, but instead to a command to deploy the release into the target server.If I end-up to include the
releaseanddeploycommands in the Elixir Docker Stack, they will target only pet projects that we deploy to the likes of Digital Ocean, Linode or similar.OvermindDL1
No guide but nothing special about it. I just have a builder image that brings in otp/elixir/rust, builds, then copies the compiled release to the main image and run that, nothing special or out of the norm.
Why would you need a release or deploy commands? The ‘release’ is building the image, the deploy is loading the docker image, docker handles it all.