Skip to content
Snippets Groups Projects
Commit dad96a2a authored by Mike Greiling's avatar Mike Greiling
Browse files

install node modules and set node env prior to compiling assets

parent 0aca30b2
No related branches found
No related tags found
1 merge request!1264Remove NodeJS as a production dependency
Loading
Loading
@@ -89,14 +89,17 @@ build do
copy 'config/secrets.yml.example', 'config/secrets.yml'
 
assets_compile_env = {
"NODE_ENV" => "production",
"RAILS_ENV" => "production",
"PATH" => "#{install_dir}/embedded/bin:#{ENV['PATH']}",
"USE_DB" => "false",
"SKIP_STORAGE_VALIDATION" => "true"
}
command "npm install --production"
bundle "exec rake gitlab:assets:compile", :env => assets_compile_env
 
# Tear down now that gitlab:assets:compile is done.
delete 'node_modules'
delete 'config/gitlab.yml'
delete 'config/database.yml'
delete 'config/secrets.yml'
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment