Commit c36a4823 authored by Rik Smith-Unna's avatar Rik Smith-Unna
Browse files

return promise from startnewapp

parent 780066cb
Pipeline #1094 passed with stage
in 5 minutes and 38 seconds
......@@ -18,7 +18,7 @@ const run = async () => {
await require('pubsweet-cli/src/initial-app')(appname)
console.log('app generated')
await require('pubsweet-cli/src/setup-db')({
const app = await require('pubsweet-cli/src/setup-db')({
properties: require('pubsweet-cli/src/db-properties'),
override: require('pubsweet-cli/test/fixtures').dbconfig
})
......@@ -38,8 +38,8 @@ const run = async () => {
)
console.log('starting server')
require('pubsweet-cli/src/start')(_server => {
console.log('PARENT SHOULD DETACH')
return new Promise(resolve => {
require('pubsweet-cli/src/start')(() => resolve(app))
})
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment