mirror of
https://github.com/wahyd4/libr-2.git
synced 2026-08-09 05:15:53 +10:00
cache postgres data
This commit is contained in:
@@ -24,6 +24,8 @@ services:
|
||||
- dev
|
||||
environment:
|
||||
POSTGRES_DB: tuxue
|
||||
volumes:
|
||||
- ~/data:/var/lib/postgresql/data
|
||||
|
||||
volumes:
|
||||
gems_cache:
|
||||
|
||||
@@ -1,6 +1,10 @@
|
||||
#!/bin/bash
|
||||
set -eu
|
||||
|
||||
if ! nc -z postgres 5432; then
|
||||
sleep 3;
|
||||
fi
|
||||
|
||||
# rake db:create
|
||||
rake db:migrate
|
||||
|
||||
|
||||
Reference in New Issue
Block a user