diff --git a/examples/rubyonrails/devenv.nix b/examples/rubyonrails/devenv.nix index 4586b3f9d..c14d14160 100644 --- a/examples/rubyonrails/devenv.nix +++ b/examples/rubyonrails/devenv.nix @@ -7,6 +7,8 @@ packages = [ pkgs.openssl pkgs.libyaml + pkgs.git + pkgs.curl ]; services.postgres.enable = true; @@ -15,12 +17,12 @@ enterShell = '' if [ ! -d "blog" ]; then - gem install rails - rails new blog --database=postgresql --force + gem install rails || exit 1 + rails new blog --database=postgresql --force || exit 1 fi export PATH="$DEVENV_ROOT/blog/bin:$PATH" pushd blog - bundle + bundle || exit 1 popd ''; }