Create necessary dirs

This commit is contained in:
Ari Timonen 2020-05-03 13:16:02 +03:00
parent 66f012f3ec
commit 4bb15ffd56
2 changed files with 4 additions and 2 deletions

View file

@ -40,13 +40,14 @@ Run some tests:
There are some unresolved issues to setup dev env. 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. 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 1000:1000 .
sudo chown -R 999:999 db/data 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 ## Tips

View file

@ -65,6 +65,7 @@ ADD --chown=web . /var/www
# Assets are only compiled for production+ # Assets are only compiled for production+
RUN bundle exec rake assets:precompile && \ RUN bundle exec rake assets:precompile && \
mkdir -p tmp/sockets tmp/pids log && \
# FIXME: Temporary fix for assets # FIXME: Temporary fix for assets
# Move assets to a temp dir here and move them back in entry script # Move assets to a temp dir here and move them back in entry script
cp -r /var/www/public/assets /home/web/assets cp -r /var/www/public/assets /home/web/assets