From 4cfbdb405fa60e7d57732e6982cfc2c2c472fcc8 Mon Sep 17 00:00:00 2001 From: Bob van der Linden Date: Mon, 1 Apr 2024 15:17:16 +0200 Subject: [PATCH 1/2] examples/rubyonrails: fail early --- examples/rubyonrails/devenv.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/rubyonrails/devenv.nix b/examples/rubyonrails/devenv.nix index 4586b3f9d..0c3de5677 100644 --- a/examples/rubyonrails/devenv.nix +++ b/examples/rubyonrails/devenv.nix @@ -15,12 +15,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 ''; } From 16897f444fa386284b2202c425422d7cdc0c4d57 Mon Sep 17 00:00:00 2001 From: Bob van der Linden Date: Mon, 1 Apr 2024 15:17:38 +0200 Subject: [PATCH 2/2] examples/rubyonrails: add required git and curl cli --- examples/rubyonrails/devenv.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/examples/rubyonrails/devenv.nix b/examples/rubyonrails/devenv.nix index 0c3de5677..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;