keystonejs / keystone-jamstack-plus Goto Github PK
View Code? Open in Web Editor NEW⚠️ Archived - Legacy Project
⚠️ Archived - Legacy Project
The welcome page makes assumptions about the API URL see: #6
Ideally we could capture this on the server-side.
This will also form the basis of the article part.
2021-04-03T20:31:24.982547+00:00 app[web.1]:
2021-04-03T20:31:24.982565+00:00 app[web.1]: > [email protected] prestart /app
2021-04-03T20:31:24.982565+00:00 app[web.1]: > npm run initialise_db
2021-04-03T20:31:24.982566+00:00 app[web.1]:
2021-04-03T20:31:25.343799+00:00 app[web.1]:
2021-04-03T20:31:25.343849+00:00 app[web.1]: > [email protected] initialise_db /app
2021-04-03T20:31:25.343850+00:00 app[web.1]: > knex seed:run && knex migrate:up
2021-04-03T20:31:25.343851+00:00 app[web.1]:
2021-04-03T20:31:57.570539+00:00 app[web.1]: Could not connect to database: 'xxx'
2021-04-03T20:31:57.571038+00:00 app[web.1]: If this is the first time you've run Keystone, you can create your database with the following command:
2021-04-03T20:31:57.571134+00:00 app[web.1]: createdb xxx
2021-04-03T20:31:57.571668+00:00 app[web.1]: Error: Error while executing "/app/data/seeds/initial_data.js" seed: Knex: Timeout acquiring a connection. The pool is probably full. Are you missing a .transacting(trx) call?
2021-04-03T20:31:57.571669+00:00 app[web.1]: at Seeder._waterfallBatch (/app/node_modules/knex/lib/seed/Seeder.js:118:23)
2021-04-03T20:31:57.571670+00:00 app[web.1]: Error: Knex: Timeout acquiring a connection. The pool is probably full. Are you missing a .transacting(trx) call?
2021-04-03T20:31:57.571671+00:00 app[web.1]: at /app/node_modules/@keystonejs/utils/dist/utils.cjs.prod.js:45:97
2021-04-03T20:31:57.571671+00:00 app[web.1]: at async Object.exports.seed (/app/data/seeds/initial_data.js:10:3)
2021-04-03T20:31:57.571672+00:00 app[web.1]: at async Seeder._waterfallBatch (/app/node_modules/knex/lib/seed/Seeder.js:115:9)
2021-04-03T20:31:57.589002+00:00 app[web.1]: npm ERR! code ELIFECYCLE
2021-04-03T20:31:57.589342+00:00 app[web.1]: npm ERR! errno 1
2021-04-03T20:31:57.595322+00:00 app[web.1]: npm ERR! [email protected] initialise_db: `knex seed:run && knex migrate:up`
2021-04-03T20:31:57.595402+00:00 app[web.1]: npm ERR! Exit status 1
2021-04-03T20:31:57.595518+00:00 app[web.1]: npm ERR!
2021-04-03T20:31:57.595595+00:00 app[web.1]: npm ERR! Failed at the [email protected] initialise_db script.
2021-04-03T20:31:57.595686+00:00 app[web.1]: npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
2021-04-03T20:31:57.603710+00:00 app[web.1]:
2021-04-03T20:31:57.604015+00:00 app[web.1]: npm ERR! A complete log of this run can be found in:
2021-04-03T20:31:57.604159+00:00 app[web.1]: npm ERR! /app/.npm/_logs/2021-04-03T20_31_57_596Z-debug.log
2021-04-03T20:31:57.617713+00:00 app[web.1]: npm ERR! code ELIFECYCLE
2021-04-03T20:31:57.617990+00:00 app[web.1]: npm ERR! errno 1
2021-04-03T20:31:57.623283+00:00 app[web.1]: npm ERR! [email protected] prestart: `npm run initialise_db`
2021-04-03T20:31:57.623364+00:00 app[web.1]: npm ERR! Exit status 1
2021-04-03T20:31:57.623466+00:00 app[web.1]: npm ERR!
2021-04-03T20:31:57.623549+00:00 app[web.1]: npm ERR! Failed at the [email protected] prestart script.
2021-04-03T20:31:57.623616+00:00 app[web.1]: npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
2021-04-03T20:31:57.629937+00:00 app[web.1]:
2021-04-03T20:31:57.630158+00:00 app[web.1]: npm ERR! A complete log of this run can be found in:
2021-04-03T20:31:57.630247+00:00 app[web.1]: npm ERR! /app/.npm/_logs/2021-04-03T20_31_57_624Z-debug.log
2021-04-03T20:31:57.710482+00:00 heroku[web.1]: Process exited with status 1
2021-04-03T20:31:57.765381+00:00 heroku[web.1]: State changed from starting to crashed
This should tell users they have successfully deployed to Heroku etc.... and be generally helpful... and look good.
Great issue Mike!
Make sure this works and is appropriately restricted.
Question: If users don't need to be logged in for this... it's really hard!
Document etc...
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.