|
|
|
@ -18,7 +18,7 @@ const run = async opts => { |
|
|
|
console.log(chalk.green(`Budibase app ${opts.name} created!`)) |
|
|
|
} catch (error) { |
|
|
|
console.error( |
|
|
|
chalk.red("Error creating new app", JSON.stringify(error, { space: 2 })) |
|
|
|
chalk.red("Error creating new app", error) |
|
|
|
) |
|
|
|
} |
|
|
|
} |
|
|
|
@ -52,8 +52,10 @@ const createAppInstance = async opts => { |
|
|
|
const instanceController = require("@budibase/server/src/api/controllers/instance") |
|
|
|
const createInstCtx = { |
|
|
|
params: { |
|
|
|
clientId: process.env.CLIENT_ID, |
|
|
|
applicationId: opts.applicationId, |
|
|
|
clientId: process.env.CLIENT_ID |
|
|
|
}, |
|
|
|
user: { |
|
|
|
appId: opts.applicationId |
|
|
|
}, |
|
|
|
request: { |
|
|
|
body: { name: `dev-${process.env.CLIENT_ID}` }, |
|
|
|
|