lastday4you
Virtual environment for phoenix
I used to use virtual environment in python to separate django version but do we have anything similar in phoenix/elixir. I want to install latest phoenix cli for my new project but i still have old project that i want to keep the old cli at the moment.
Marked As Solved
NobbZ
Again, if you are in a phoenix 1.2 project and do mix phoenix.gen.whatever it will use the generators of the recently pulled phoenix 1.2.
If you are in a phoenix 1.3 project and do mix phx.gen.whatever it will use the generators of the recently pulled phoenix 1.3.
This would even work if if 1.3 were still using phoenix as a prefix for its tasks.
This does work independently of the installed version of phx_gen, even if it were for phoenix 1.0 or earlier.
Also Liked
NobbZ
It doesn’t have to, as phoenix is only installed “project local” as a dependency to your application.
jakemorrison
Here are step by step instructions for setting up ASDF https://github.com/cogini/elixir-deploy-template#set-up-asdf








