From 48d66a205567f7a3d59ce21eb024e11b5eb18b75 Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Wed, 16 Mar 2016 12:57:01 +0100 Subject: Fixing the docker container setup (with assets compilation &co) --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'README.md') diff --git a/README.md b/README.md index f02e5cddd..a1f7b2e27 100644 --- a/README.md +++ b/README.md @@ -48,3 +48,9 @@ And finally As usual, the first thing you would need to do would be to run migrations: docker-compose run web rake db:migrate + +And since the instance running in the container will be running in production mode, you need to pre-compile assets: + + docker-compose run web rake assets:precompile + +The container has two volumes, for the assets and for user uploads. The default docker-compose.yml maps them to the repository's `public/assets` and `public/system` directories, you may wish to put them somewhere else. Likewise, the PostgreSQL and Redis images have data containers that you may wish to map somewhere where you know how to find them and back them up. -- cgit