pushkin-consortium / pushkin-cli

A CLI designed to facilitate the setup process of a Pushkin stack
MIT License
0 stars 4 forks source link

Fixing database issue: #13

Closed jkhartshorne closed 5 years ago

jkhartshorne commented 5 years ago

Building the test database isn't currently working:

Joshuas-Air:pushkin_new jkhartshorne$ pushkin init Unzipping core files Untarring core files Installing npm dependencies for api Installing npm dependencies for front-end Creating local test database Failed to run create database command in test_db container: Error: Command failed: docker-compose -f pushkin/docker-compose.dev.yml exec -T test_db psql -U postgres -c "create database test_db" psql: could not connect to server: No such file or directory Is the server running locally and accepting connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?

Building api Building front-end

jkhartshorne commented 5 years ago

It seems like this might be because the containers aren't started yet:

Joshuas-Air:pushkin jkhartshorne$ docker-compose -f docker-compose.dev.yml start Starting message-queue ... done Starting api ... done Starting server ... done Starting test_db ... done Joshuas-Air:pushkin jkhartshorne$ docker-compose -f pushkin/docker-compose.dev.yml exec -T test_db psql -U postgres -c "create database test_db" CREATE DATABASE

jkhartshorne commented 5 years ago

Fixed with v. 0.1.15 of cli.