fix "Try the demo app" in docs (#38)
* fix "Try the demo app" in docs * fix "Get Started" setup in docs
This commit is contained in:
parent
51e105699e
commit
7763251fb7
|
@ -93,7 +93,7 @@ database:
|
||||||
port: 5432
|
port: 5432
|
||||||
dbname: app_development
|
dbname: app_development
|
||||||
user: postgres
|
user: postgres
|
||||||
password: ''
|
password: postgres
|
||||||
|
|
||||||
#schema: "public"
|
#schema: "public"
|
||||||
#pool_size: 10
|
#pool_size: 10
|
||||||
|
|
|
@ -54,7 +54,7 @@ database:
|
||||||
port: 5432
|
port: 5432
|
||||||
dbname: app_production
|
dbname: app_production
|
||||||
user: postgres
|
user: postgres
|
||||||
password: ''
|
password: postgres
|
||||||
#pool_size: 10
|
#pool_size: 10
|
||||||
#max_retries: 0
|
#max_retries: 0
|
||||||
#log_level: "debug"
|
#log_level: "debug"
|
||||||
|
|
|
@ -1,9 +1,12 @@
|
||||||
version: '3.4'
|
version: '3.4'
|
||||||
services:
|
services:
|
||||||
db:
|
db:
|
||||||
image: postgres
|
image: postgres:12
|
||||||
ports:
|
ports:
|
||||||
- "5432:5432"
|
- "5432:5432"
|
||||||
|
environment:
|
||||||
|
POSTGRES_USER: postgres
|
||||||
|
POSTGRES_PASSWORD: postgres
|
||||||
|
|
||||||
# redis:
|
# redis:
|
||||||
# image: redis:alpine
|
# image: redis:alpine
|
||||||
|
|
|
@ -34,6 +34,12 @@ Super Graph has a rich feature set like integrating with your existing Ruby on R
|
||||||
# clone the repository
|
# clone the repository
|
||||||
git clone https://github.com/dosco/super-graph
|
git clone https://github.com/dosco/super-graph
|
||||||
|
|
||||||
|
# run db in background
|
||||||
|
docker-compose up -d db
|
||||||
|
|
||||||
|
# see logs and wait until DB is really UP
|
||||||
|
docker-compose logs db
|
||||||
|
|
||||||
# setup the demo rails app & database and run it
|
# setup the demo rails app & database and run it
|
||||||
docker-compose run rails_app rake db:create db:migrate db:seed
|
docker-compose run rails_app rake db:create db:migrate db:seed
|
||||||
|
|
||||||
|
@ -1767,7 +1773,7 @@ database:
|
||||||
port: 5432
|
port: 5432
|
||||||
dbname: app_development
|
dbname: app_development
|
||||||
user: postgres
|
user: postgres
|
||||||
password: ''
|
password: postgres
|
||||||
|
|
||||||
#schema: "public"
|
#schema: "public"
|
||||||
#pool_size: 10
|
#pool_size: 10
|
||||||
|
|
|
@ -19,7 +19,7 @@ default: &default
|
||||||
encoding: unicode
|
encoding: unicode
|
||||||
host: db
|
host: db
|
||||||
username: postgres
|
username: postgres
|
||||||
password:
|
password: postgres
|
||||||
pool: 5
|
pool: 5
|
||||||
|
|
||||||
development:
|
development:
|
||||||
|
|
|
@ -109,7 +109,7 @@ database:
|
||||||
port: 5432
|
port: 5432
|
||||||
dbname: {% app_name_slug %}_development
|
dbname: {% app_name_slug %}_development
|
||||||
user: postgres
|
user: postgres
|
||||||
password: ''
|
password: postgres
|
||||||
|
|
||||||
#schema: "public"
|
#schema: "public"
|
||||||
#pool_size: 10
|
#pool_size: 10
|
||||||
|
|
|
@ -54,7 +54,7 @@ database:
|
||||||
port: 5432
|
port: 5432
|
||||||
dbname: {% app_name_slug %}_development
|
dbname: {% app_name_slug %}_development
|
||||||
user: postgres
|
user: postgres
|
||||||
password: ''
|
password: postgres
|
||||||
#pool_size: 10
|
#pool_size: 10
|
||||||
#max_retries: 0
|
#max_retries: 0
|
||||||
#log_level: "debug"
|
#log_level: "debug"
|
||||||
|
|
Loading…
Reference in New Issue