cache postgres data

This commit is contained in:
2018-06-04 00:46:08 +10:00
parent f5293d4def
commit 5eaa31800a
2 changed files with 6 additions and 0 deletions
+2
View File
@@ -24,6 +24,8 @@ services:
- dev
environment:
POSTGRES_DB: tuxue
volumes:
- ~/data:/var/lib/postgresql/data
volumes:
gems_cache:
+4
View File
@@ -1,6 +1,10 @@
#!/bin/bash
set -eu
if ! nc -z postgres 5432; then
sleep 3;
fi
# rake db:create
rake db:migrate