Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ RUN bundle install
COPY . .

# Expose the application port
EXPOSE 9292
EXPOSE 4567

# Define the command to start the application, including migrations
# This CMD instruction now clearly separates migration and server startup.
CMD ["bash", "-c", "export RACK_ENV=production && echo \"Running database migrations...\" && bundle exec rake db:migrate && echo \"Database migrations complete. Starting server...\" && exec bundle exec rackup -p 9292 -s thin"]
CMD ["bash", "-c", "export RACK_ENV=production && echo \"Running database migrations...\" && bundle exec rake db:migrate && echo \"Database migrations complete. Starting server...\" && exec bundle exec rackup -s thin"]