Skip to content
This repository has been archived by the owner on Jul 2, 2024. It is now read-only.

Commit

Permalink
allow to monitor both running processes
Browse files Browse the repository at this point in the history
  • Loading branch information
dreamfall committed Sep 26, 2023
1 parent 2a1b447 commit 8564ea6
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 16 deletions.
10 changes: 7 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ FROM phusion/passenger-ruby31:latest

ENV HOME /home/app/deploy

CMD ["/sbin/my_init"]

# Install common dependencies
RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
--mount=type=cache,target=/var/lib/apt,sharing=locked \
Expand Down Expand Up @@ -87,4 +85,10 @@ RUN SKIP_SALESFORCE_INIT=true SKIP_FLIPPER_INIT=true SECRET_KEY_BASE=dummyvalue

EXPOSE 3000

ENTRYPOINT sh ./web-entrypoint.sh
RUN mkdir -p /etc/my_init.d
COPY docker/puma.sh /etc/my_init.d/puma.sh
COPY docker/workers.sh /etc/my_init.d/workers.sh


CMD ["/sbin/my_init"]
EXPOSE 3000
3 changes: 3 additions & 0 deletions docker/puma.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh

cd /home/app/deploy && exec bundle exec rails server -b 0.0.0.0 -p 3000 >>/var/log/puma.log 2>&1
3 changes: 3 additions & 0 deletions docker/workers.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh

cd /home/app/deploy && exec bundle exec rake jobs:work >>/var/log/workers.log 2>&1
13 changes: 0 additions & 13 deletions web-entrypoint.sh

This file was deleted.

0 comments on commit 8564ea6

Please sign in to comment.