Browse Source
Merge pull request #375 from Budibase/fix-create-app-instance
Create App Instance Fix
gh-pages
Tori Sloan
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
4 additions and
4 deletions
-
packages/cli/src/commands/new/newHandler.js
|
|
|
@ -17,9 +17,7 @@ const run = async opts => { |
|
|
|
exec(`cd ${join(opts.dir, opts.applicationId)} && npm install`) |
|
|
|
console.log(chalk.green(`Budibase app ${opts.name} created!`)) |
|
|
|
} catch (error) { |
|
|
|
console.error( |
|
|
|
chalk.red("Error creating new app", JSON.stringify(error, { space: 2 })) |
|
|
|
) |
|
|
|
console.error(chalk.red("Error creating new app", error)) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
@ -53,7 +51,9 @@ const createAppInstance = async opts => { |
|
|
|
const createInstCtx = { |
|
|
|
params: { |
|
|
|
clientId: process.env.CLIENT_ID, |
|
|
|
applicationId: opts.applicationId, |
|
|
|
}, |
|
|
|
user: { |
|
|
|
appId: opts.applicationId, |
|
|
|
}, |
|
|
|
request: { |
|
|
|
body: { name: `dev-${process.env.CLIENT_ID}` }, |
|
|
|
|