Skip to content

Commit

Permalink
Change: Use puma
Browse files Browse the repository at this point in the history
  • Loading branch information
sevenc-nanashi committed Oct 30, 2023
1 parent 02c05b5 commit 36c18da
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions backend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,6 @@ COPY backend/. .

ENV RAILS_ENV production
ENV RUBY_YJIT_ENABLE 1
EXPOSE 3000
ENV CONSOLE_OUTPUT XTerm
CMD ["bundle", "exec", "bash", "./start.sh"]
3 changes: 1 addition & 2 deletions backend/Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,9 @@ group :development do
gem "rubocop-discourse", "~> 3.0", require: false

gem "syntax_tree", "~> 5.1", require: false

gem "puma", "~> 6.3", require: false
end

gem "puma", "~> 6.3", require: false
gem "falcon", "~> 0.42"

gem "shortuuid", "~> 0.6.0"
Expand Down
2 changes: 1 addition & 1 deletion backend/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ echo "Starting sidekiq"
sidekiq &

echo "Starting rails server"
falcon serve --bind http://0.0.0.0:3000
rails s -u puma -p 3000
1 change: 1 addition & 0 deletions frontend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@ RUN npm install -g pnpm && pnpm install --frozen-lockfile

COPY frontend/. .

EXPOSE 3100
CMD ["pnpm", "start"]
1 change: 1 addition & 0 deletions sub-chart/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ COPY sub-chart/package.json ./
COPY sub-chart/dist ./dist

ENV NODE_ENV production
EXPOSE 3201
CMD ["pnpm", "run", "start"]

0 comments on commit 36c18da

Please sign in to comment.