missing start postgresql

This commit is contained in:
Tristan Mahé 2018-06-28 16:34:00 -07:00
parent 3b9ccb0dda
commit 52c000ef4b
1 changed files with 2 additions and 0 deletions

View File

@ -18,11 +18,13 @@ cargo run # this will configure and launch Plume on the server.
## If you want to run Plume with a remote DB this time ( Postgresql is not installed on the same server/container): ## If you want to run Plume with a remote DB this time ( Postgresql is not installed on the same server/container):
* On the DB server: * On the DB server:
service postgresql start
su - postgres su - postgres
createuser -d -P plume createuser -d -P plume
createdb -O plume plume createdb -O plume plume
* On the Plume server: * On the Plume server:
cd /home/plume/Plume
diesel migration run --database-url postgres://plume:PASSWORD@DBSERVERIP:DBPORT/plume diesel migration run --database-url postgres://plume:PASSWORD@DBSERVERIP:DBPORT/plume
DB_URL=postgres://plume:PASSWORD@DBSERVERIP:DBPORT/plume cargo run # the first launch will ask questions to configure the instance. A second launch will not need the DB_URL. DB_URL=postgres://plume:PASSWORD@DBSERVERIP:DBPORT/plume cargo run # the first launch will ask questions to configure the instance. A second launch will not need the DB_URL.