WIP
A nix-shell template to set a Phoenix development environment up with direnv integration (if installed).
Built gathering inspiration from several sources, it makes available:
unstable.
elixirunstable.
elixir_ls (LSP)- nodejs-12_x for WebPack swing
- rebar3 via
setup
script: erlang build tool that makes it easy to compile and test erlang applications and releases- currently installed from the
setup
script: check TODO
- currently installed from the
- Phoenix version
1.5.9
installed viasetup
script unstable.
postgresql_14 setup- TODO: check/complete PostgreSQL section
initdb --no-locale --encoding=UTF-8
pg_ctl -l "$PGDATA/server.log" start
createuser postgres --createdb
mix ecto.setup
Because we are too lazy to run all these commands by hand each time Iwe need to setup a project and because automation is good: ejpcmac's Setup script for Phoenix projects using Nix and PostgreSQL
My fork of ejpcmac's script (never knows).
To stop our local PostgreSQL instance:
pg_ctl stop
- About using Nix in my development workflow - Jean-Philippe Cugnet - Medium
- Phoenix Installation Guide
- Up and Running
-
envrc_to_check
-
setup_to_check
-
Could not find "rebar3", which is needed to build dependency :ranch
?- currently installed from the
setup
script
- currently installed from the
-
automatically stop local PostgreSQL instance when leaving the environment
-
lorri integration
-
...