@ -10,10 +10,14 @@ RUN apt-get update -qq && \
|
|||||||
ENV HOME=/home/app
|
ENV HOME=/home/app
|
||||||
USER app
|
USER app
|
||||||
|
|
||||||
|
ENV RAILS_ENV=production
|
||||||
|
|
||||||
COPY --chown=app:app Gemfile Gemfile.lock $HOME/wedding/
|
COPY --chown=app:app Gemfile Gemfile.lock $HOME/wedding/
|
||||||
WORKDIR $HOME/wedding
|
WORKDIR $HOME/wedding
|
||||||
RUN bundle
|
RUN bundle
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
CMD ["bundle", "exec", "rails", "server", "-b", "0.0.0.0"]
|
CMD ["bundle", "exec", "rails", "server", "-b", "0.0.0.0"]
|
||||||
|
|
||||||
COPY --chown=app:app . $HOME/wedding/
|
COPY --chown=app:app . $HOME/wedding/
|
||||||
|
@ -5,6 +5,7 @@ Rails.application.configure do
|
|||||||
|
|
||||||
# Code is not reloaded between requests.
|
# Code is not reloaded between requests.
|
||||||
config.cache_classes = true
|
config.cache_classes = true
|
||||||
|
|
||||||
|
|
||||||
#Rails.application.routes.default_url_options[:host] = ENV.fetch("APP_HOST", "0.0.0.0")
|
#Rails.application.routes.default_url_options[:host] = ENV.fetch("APP_HOST", "0.0.0.0")
|
||||||
#Rails.application.routes.default_url_options[:port] = ENV.fetch("APP_PORT", 3000)
|
#Rails.application.routes.default_url_options[:port] = ENV.fetch("APP_PORT", 3000)
|
||||||
|
@ -10,6 +10,7 @@ services:
|
|||||||
|
|
||||||
web:
|
web:
|
||||||
environment:
|
environment:
|
||||||
|
RAILS_ENV: production
|
||||||
CANONICAL_URL: beere5:3033, wedding.linepe.de
|
CANONICAL_URL: beere5:3033, wedding.linepe.de
|
||||||
build: .
|
build: .
|
||||||
ports:
|
ports:
|
||||||
|
Reference in New Issue
Block a user