Skip to content

Commit

Permalink
mark phoenix as broken
Browse files Browse the repository at this point in the history
  • Loading branch information
mcdonc committed Jan 24, 2024
1 parent 16951c5 commit e67b1ec
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 10 deletions.
21 changes: 11 additions & 10 deletions examples/phoenix/.test.sh
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
#!/usr/bin/env bash
set -ex
mkdir hello
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
devenv up&
timeout 20 bash -c 'until echo > /dev/tcp/localhost/4000; do sleep 0.5; done'
curl -s http://localhost:4000/ | grep "Phoenix Framework"
# 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
# devenv up&
# timeout 20 bash -c 'until echo > /dev/tcp/localhost/4000; do sleep 0.5; done'
# curl -s http://localhost:4000/ | grep "Phoenix Framework"
echo "this example is currently broken"
exit 2
2 changes: 2 additions & 0 deletions examples/phoenix/devenv.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
{ pkgs, lib, ... }:

{
# this example is currently broken

packages = lib.optionals pkgs.stdenv.isLinux [ pkgs.inotify-tools ];

languages.elixir.enable = true;
Expand Down

0 comments on commit e67b1ec

Please sign in to comment.