Locked source to the commit on 5 September 2018

This commit is contained in:
Pivovarov
2018-10-29 14:14:39 +11:00
parent 5698410757
commit 6e3f85a00d
2 changed files with 7 additions and 7 deletions

View File

@@ -8,13 +8,14 @@ To run this container use following parameters:
docker run -d --name snibox \
--volume /path/to/local/db:/app/db/database \
--publish 80:3000 \
--restart always \
snibox
```
After first run you probably will see error due to database hasn't been initialized in the attached volume. Pleas run following command to create empty database:
```bash
docker exec -ti <container_id> rack db:migrate
docker exec <container_id> /app/bin/rails db:migrate
```
This will create new database instance and Snibox is ready to go.
This will create new database instance and Snibox is ready to go.