Ruby configuration update
This commit is contained in:
parent
64a95cb014
commit
875b55c0e0
3 changed files with 4 additions and 3 deletions
|
@ -26,7 +26,7 @@
|
||||||
".envrc"
|
".envrc"
|
||||||
"shell.nix"
|
"shell.nix"
|
||||||
# Ruby dependencies in source tree
|
# Ruby dependencies in source tree
|
||||||
"/vendor/rubygems"
|
"/vendor/bundle"
|
||||||
"**/*.patch"
|
"**/*.patch"
|
||||||
];
|
];
|
||||||
userEmail = config.custom.git.email;
|
userEmail = config.custom.git.email;
|
||||||
|
|
|
@ -25,7 +25,7 @@ pkgs.mkShell {
|
||||||
];
|
];
|
||||||
shellHook = ''
|
shellHook = ''
|
||||||
export DATABASE_URL="postgres://postgres:accentor@127.0.0.1:5432/accentor"
|
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"
|
export PATH="$GEM_HOME/bin:$PATH"
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
|
|
|
@ -26,8 +26,9 @@ pkgs.mkShell {
|
||||||
)
|
)
|
||||||
];
|
];
|
||||||
shellHook = ''
|
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 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"
|
export PATH="$GEM_HOME/bin:$PATH"
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue