-
Notifications
You must be signed in to change notification settings - Fork 350
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e1c2d72
commit e0c2d3e
Showing
5 changed files
with
14 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,4 @@ | ||
#!/usr/bin/env bash | ||
set -ex | ||
|
||
mix local.hex --force | ||
mix local.rebar --force | ||
echo Y | mix archive.install hex phx_new | ||
echo Y | mix phx.new hello | ||
sed -i.bak -e "s/username: \"postgres\",/socket_dir: System.get_env(\"PGDATA\"),/" \ | ||
./hello/config/dev.exs && rm ./hello/config/dev.exs.bak | ||
|
||
wait_for_port 4000 | ||
curl -s http://localhost:4000/ | grep "Phoenix Framework" | ||
curl -s http://localhost:4000/ | grep "Phoenix Framework" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,19 @@ | ||
{ pkgs, lib, ... }: | ||
|
||
{ | ||
# this example is currently broken | ||
|
||
packages = lib.optionals pkgs.stdenv.isLinux [ pkgs.inotify-tools ]; | ||
|
||
languages.elixir.enable = true; | ||
|
||
services.postgres.enable = true; | ||
|
||
processes.phoenix.exec = "mix ecto.create && mix phx.server"; | ||
processes.phoenix.exec = "cd hello && mix deps.get && mix ecto.create && mix phx.server"; | ||
process.before = '' | ||
mix local.hex --force | ||
mix local.rebar --force | ||
echo Y | mix archive.install hex phx_new | ||
echo Y | mix phx.new hello | ||
sed -i.bak -e "s/username: \"postgres\",/socket_dir: System.get_env(\"PGDATA\"),/" \ | ||
./hello/config/dev.exs && rm ./hello/config/dev.exs.bak | ||
''; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# arm is not supported yet | ||
echo "{ pkgs, ... }: { languages.unison.enable = !(stdenv.isLinux && stdenv.isAarch64); }" > devenv.local.nix |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
enterTest = '' | ||
locale -a | grep "en_US.UTF-8" | ||
locale -a | grep -E '(en_US.UTF-8|en_US.utf8)' | ||
''; | ||
} |