Ruby configuration update

This commit is contained in:
Charlotte Van Petegem 2020-05-15 10:22:08 +02:00
parent 64a95cb014
commit 875b55c0e0
3 changed files with 4 additions and 3 deletions

View file

@ -25,7 +25,7 @@ pkgs.mkShell {
];
shellHook = ''
export DATABASE_URL="postgres://postgres:accentor@127.0.0.1:5432/accentor"
export GEM_HOME="$PWD/vendor/rubygems/$(ruby -e 'puts RUBY_VERSION')"
export GEM_HOME="$PWD/vendor/bundle/$(ruby -e 'puts RUBY_VERSION')"
export PATH="$GEM_HOME/bin:$PATH"
'';
}

View file

@ -26,8 +26,9 @@ pkgs.mkShell {
)
];
shellHook = ''
export TEST_DATABASE_URL="mysql2://root:dodona@127.0.0.1:3306/dodona_test"
export DATABASE_URL="mysql2://root:dodona@127.0.0.1:3306/dodona"
export GEM_HOME="$PWD/vendor/rubygems/$(ruby -e 'puts RUBY_VERSION')"
export GEM_HOME="$PWD/vendor/bundle/$(ruby -e 'puts RUBY_VERSION')"
export PATH="$GEM_HOME/bin:$PATH"
'';
}