$arvados_config_defaults["ClusterID"] = clusterID
if ENV["ARVADOS_CONFIG"] == "none"
- # Don't load config. This magic value is set by postinst so it can
- # run "rake assets:precompile" without a real config.
+ # Don't load config. This magic value is set by packaging scripts so
+ # they can run "rake assets:precompile" without a real config.
$arvados_config_global = $arvados_config_defaults.deep_dup
else
# Load the global config file
prepare_database
fi
- # Here, "ARVADOS_CONFIG=none" tells arvados_config.rb not to try
- # loading config from /etc: it might not exist on a new install, and
- # assets:precompile doesn't depend on config anyway.
- run_and_report "Precompiling assets" \
- ARVADOS_CONFIG=none $COMMAND_PREFIX bundle exec rake assets:precompile -q -s 2>/dev/null || true
-
if [ -e /etc/arvados/config.yml ]; then
# warn about config errors (deprecated/removed keys from
# previous version, etc)
mv /tmp/x /etc/arvados/config.yml
perl -p -i -e 'BEGIN{undef $/;} s/WebDAV(.*?):\n( *)ExternalURL: ""/WebDAV$1:\n$2ExternalURL: "example.com"/g' /etc/arvados/config.yml
- RAILS_ENV=production RAILS_GROUPS=assets bundle exec rake npm:install >"$STDOUT_IF_DEBUG"
- RAILS_ENV=production RAILS_GROUPS=assets bundle exec rake assets:precompile >"$STDOUT_IF_DEBUG"
+ ARVADOS_CONFIG=none RAILS_ENV=production RAILS_GROUPS=assets bundle exec rake npm:install >"$STDOUT_IF_DEBUG"
+ ARVADOS_CONFIG=none RAILS_ENV=production RAILS_GROUPS=assets bundle exec rake assets:precompile >"$STDOUT_IF_DEBUG"
# Remove generated configuration files so they don't go in the package.
rm -rf /etc/arvados/
$arvados_config_defaults["ClusterID"] = clusterID
if ENV["ARVADOS_CONFIG"] == "none"
- # Don't load config. This magic value is set by postinst so it can
- # run "rake assets:precompile" without a real config.
+ # Don't load config. This magic value is set by packaging scripts so
+ # they can run "rake assets:precompile" without a real config.
$arvados_config_global = $arvados_config_defaults.deep_dup
else
# Load the global config file