Commit ef828120280e05276910dd83840b8feb37e5836c
1 parent
b77c8a6c
Exists in
master
and in
17 other branches
Add gitlab-rails wrapper
Showing
1 changed file
with
6 additions
and
0 deletions
Show diff stats
config/software/gitlab-core.rb
| ... | ... | @@ -65,4 +65,10 @@ build do |
| 65 | 65 | :source => "bundle_exec_wrapper.erb", |
| 66 | 66 | :mode => 0755, |
| 67 | 67 | :vars => {:command => 'rake "$@"', :install_dir => install_dir} |
| 68 | + | |
| 69 | + # Create a wrapper for the rails command, useful for e.g. `rails console` | |
| 70 | + erb :dest => "#{install_dir}/bin/gitlab-rails", | |
| 71 | + :source => "bundle_exec_wrapper.erb", | |
| 72 | + :mode => 0755, | |
| 73 | + :vars => {:command => 'rails "$@"', :install_dir => install_dir} | |
| 68 | 74 | end | ... | ... |