Skip to content

Commit

Permalink
Merge pull request #1089 from bobvanderlinden/fix-rubyonrails-example
Browse files Browse the repository at this point in the history
examples/rubyonrails: make test pass
  • Loading branch information
domenkozar authored Apr 1, 2024
2 parents c82b8ba + 16897f4 commit e106743
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions examples/rubyonrails/devenv.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
packages = [
pkgs.openssl
pkgs.libyaml
pkgs.git
pkgs.curl
];

services.postgres.enable = true;
Expand All @@ -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
'';
}

0 comments on commit e106743

Please sign in to comment.