diff --git a/packages/server/.env.template b/packages/server/.env.template index 92de354d3e..16ca2e5a6b 100644 --- a/packages/server/.env.template +++ b/packages/server/.env.template @@ -1,7 +1,20 @@ +# url of couch db, including username and password +# http://admin:password@localhost:5984 COUCH_DB_URL={{couchDbUrl}} + +# local (PouchDB) - default for dev +# remote (CouchDB) - required couch db installation DATABASE_TYPE={{database}} + +# identifies a client database - i.e. group of apps CLIENT_ID={{clientId}} + +# Full access API key for server ADMIN_SECRET={{adminSecret}} + +# used to create cookie hashes COOKIE_KEY_1={{cookieKey1}} COOKIE_KEY_2={{cookieKey2}} + +# port to run http server on PORT=4001 \ No newline at end of file diff --git a/packages/server/package.json b/packages/server/package.json index 878ebc3d94..963c0aabfe 100644 --- a/packages/server/package.json +++ b/packages/server/package.json @@ -8,7 +8,7 @@ "test:integration": "jest neo --runInBand", "test:watch": "jest -w", "build": "cd appPackages/_master && yarn && cd ../testApp && yarn && cd ../testApp2 && yarn", - "initialise": "node ./initialise/initialiseBudibase init -d ./myapps -c contributors -u admin -p admin", + "initialise": "node ../cli/bin/budi init ./myapps -b local -q", "budi": "node ../cli/bin/budi", "dev:builder": "node index --enable-source-maps" },