diff --git a/Dockerfile b/Dockerfile index 3eefaed..c7bd930 100644 --- a/Dockerfile +++ b/Dockerfile @@ -22,13 +22,13 @@ RUN bundle install # Params ARG RAILS_ENV="production" ARG RAILS_SERVE_STATIC_FILES="true" -ARG RELATIVE_URL_ROOT="/app/root" +ARG RAILS_RELATIVE_URL_ROOT="/app/root" # Set environment variables and expose the running port ENV RAILS_ENV=$RAILS_ENV ENV RAILS_SERVE_STATIC_FILES=$RAILS_SERVE_STATIC_FILES -ENV RELATIVE_URL_ROOT=$RELATIVE_URL_ROOT -ENV SCRIPT_NAME=$RELATIVE_URL_ROOT +ENV RAILS_RELATIVE_URL_ROOT=$RAILS_RELATIVE_URL_ROOT +ENV SCRIPT_NAME=$RAILS_RELATIVE_URL_ROOT EXPOSE 3000 # Precompile assets and add entrypoint script diff --git a/config/environments/production.rb b/config/environments/production.rb index f93cc0e..b463819 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -78,7 +78,7 @@ config.logger = JsonRailsLogger::Logger.new($stdout) - config.relative_url_root = ENV['RELATIVE_URL_ROOT'] || '/' + config.relative_url_root = ENV['RAILS_RELATIVE_URL_ROOT'] || '/' config.accessibility_document_path = '/accessibility' config.privacy_document_path = '/privacy'