From 4bb15ffd56946bd0be229ce6ab84ad39157bb858 Mon Sep 17 00:00:00 2001 From: Ari Timonen Date: Sun, 3 May 2020 13:16:02 +0300 Subject: [PATCH] Create necessary dirs --- DEVELOPMENT.md | 5 +++-- Dockerfile | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/DEVELOPMENT.md b/DEVELOPMENT.md index 8bcf2a3..1dde0e8 100644 --- a/DEVELOPMENT.md +++ b/DEVELOPMENT.md @@ -40,13 +40,14 @@ Run some tests: There are some unresolved issues to setup dev env. -1. Make sure tmp, tmp/sockets, tmp/pids and log exist. 1. Make sure docker has access to its dirs. You might have to chown if you have permission issues with docker. sudo chown -R 1000:1000 . sudo chown -R 999:999 db/data -1. You might have to run migrations manually. `bundle exec rake db:migrate` +1. You might have to run migrations manually. + + bundle exec rake db:migrate` ## Tips diff --git a/Dockerfile b/Dockerfile index 2f10018..af74a7e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -65,6 +65,7 @@ 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