New beta environment settings
This commit is contained in:
parent
2b0eccf9bd
commit
bc006d9f60
|
|
@ -1,2 +0,0 @@
|
||||||
# config/environments/beta.rb
|
|
||||||
require_relative 'production'
|
|
||||||
|
|
@ -6,5 +6,7 @@ WORKDIR /app
|
||||||
COPY Gemfile* /app/
|
COPY Gemfile* /app/
|
||||||
RUN gem install bundler:2.3.13 && bundle config set deployment 'true' && bundle install
|
RUN gem install bundler:2.3.13 && bundle config set deployment 'true' && bundle install
|
||||||
COPY . /app
|
COPY . /app
|
||||||
|
# Duplicate production environment to beta environment
|
||||||
|
COPY config/environments/production.rb config/environments/beta.rb
|
||||||
ENV RAILS_ENV production
|
ENV RAILS_ENV production
|
||||||
CMD bundle exec rails db:migrate && bundle exec rails s -p 3000 -b 0.0.0.0
|
CMD bundle exec rails db:migrate && bundle exec rails s -p 3000 -b 0.0.0.0
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue