From 506caad06a75c470fbed8741ffe8aa1914b13700 Mon Sep 17 00:00:00 2001 From: Ari Timonen Date: Sun, 3 May 2020 13:25:14 +0300 Subject: [PATCH] Add cmd to add dirs --- DEVELOPMENT.md | 2 +- Dockerfile | 1 - bin/script/entry.sh | 3 +++ 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/DEVELOPMENT.md b/DEVELOPMENT.md index 1dde0e8..bb4bf3e 100644 --- a/DEVELOPMENT.md +++ b/DEVELOPMENT.md @@ -1,6 +1,6 @@ # Development -Install instructions in INSTALL.md. Read this whole documentation before posting. +Install instructions in INSTALL.md. Read this whole documentation before proceeding. ## Basic commands for development diff --git a/Dockerfile b/Dockerfile index af74a7e..2f10018 100644 --- a/Dockerfile +++ b/Dockerfile @@ -65,7 +65,6 @@ ADD --chown=web . /var/www # Assets are only compiled for production+ RUN bundle exec rake assets:precompile && \ - mkdir -p tmp/sockets tmp/pids log && \ # FIXME: Temporary fix for assets # Move assets to a temp dir here and move them back in entry script cp -r /var/www/public/assets /home/web/assets diff --git a/bin/script/entry.sh b/bin/script/entry.sh index 673ee54..c62b76a 100755 --- a/bin/script/entry.sh +++ b/bin/script/entry.sh @@ -4,6 +4,9 @@ cd $APP_PATH source script/env.sh .env .env.$RAILS_ENV .env.$RAILS_ENV.local .env.local +# Create dirs +mkdir -p tmp/pids tmp/sockets tmp/sessions tmp/cache log + # Make sure we have all gems, this fixed some startup issues. bundle config github.https true bundle config set path '/var/bundle'