Skip to content

Commit

Permalink
ruby: install deps in run.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
mickamy committed Jan 5, 2024
1 parent 35db072 commit 314b0bf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 0 additions & 5 deletions docker/app/ruby/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,4 @@ COPY --chown=ishocon:ishocon webapp/ /home/ishocon/webapp

WORKDIR /home/ishocon

# ライブラリのインストール
RUN cd /home/ishocon/webapp/ruby && \
sudo gem install bundler -v "1.16.1" && \
sudo bundle install

COPY run.sh /home/ishocon/run.sh
2 changes: 2 additions & 0 deletions run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ function make_tmp_file() {
function run_ruby() {
cd "/home/ishocon/webapp/$app_lang"
sudo rm -rf /tmp/unicorn.pid
gem install bundler -v "1.16.1"
bundle install
make_tmp_file
unicorn -c unicorn_config.rb
}
Expand Down

0 comments on commit 314b0bf

Please sign in to comment.