|
|
@ -21,10 +21,9 @@ server.set('view engine', 'ejs'); |
|
|
|
process.env[`DEBUG`] = 'xc*'; |
|
|
|
process.env[`DEBUG`] = 'xc*'; |
|
|
|
|
|
|
|
|
|
|
|
(async () => { |
|
|
|
(async () => { |
|
|
|
|
|
|
|
await nocobuild(server); |
|
|
|
const httpServer = server.listen(process.env.PORT || 8080, async () => { |
|
|
|
const httpServer = server.listen(process.env.PORT || 8080, async () => { |
|
|
|
await nocobuild(server); |
|
|
|
await new Promise((resolve) => setTimeout(resolve, 2000) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (!(await User.getByEmail('user@nocodb.com'))) { |
|
|
|
if (!(await User.getByEmail('user@nocodb.com'))) { |
|
|
|
const response = await axios.post( |
|
|
|
const response = await axios.post( |
|
|
|
`http://localhost:${process.env.PORT || 8080}/api/v1/auth/user/signup`, |
|
|
|
`http://localhost:${process.env.PORT || 8080}/api/v1/auth/user/signup`, |
|
|
|