Giter Site home page Giter Site logo

codeship-library / nodejs-express-todoapp Goto Github PK

View Code? Open in Web Editor NEW
20.0 8.0 51.0 27 KB

Sample application for Codeship Pro using Express & Node.js

Home Page: https://codeship.com/features/pro

JavaScript 100.00%
codeship codeship-pro nodejs-express nodejs express docker

nodejs-express-todoapp's People

Contributors

drewkit avatar ethangj avatar kellyjandrews avatar mlocher avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

nodejs-express-todoapp's Issues

jet steps is failing

I am following README and on jet steps tests step is failing:

(service: web-codeship-example-node) (step: parallel_tests) [ERROR] Error: ENOENT: no such file or directory, scandir '/usr/app/migrations'
(service: web-codeship-example-node) (step: parallel_tests) 
npm info lifecycle [email protected]~migrate: Failed to exec migrate script
(service: web-codeship-example-node) (step: parallel_tests) npm ERR! Linux 4.9.125-linuxkit
(service: web-codeship-example-node) (step: parallel_tests) npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "migrate"
(service: web-codeship-example-node) (step: parallel_tests) npm ERR! node v7.7.2
(service: web-codeship-example-node) (step: parallel_tests) npm ERR! npm  v4.1.2
(service: web-codeship-example-node) (step: parallel_tests) npm ERR! code ELIFECYCLE
(service: web-codeship-example-node) (step: parallel_tests) npm ERR! [email protected] migrate: `node ./node_modules/db-migrate/bin/db-migrate up all`
(service: web-codeship-example-node) (step: parallel_tests) npm ERR! Exit status 1
(service: web-codeship-example-node) (step: parallel_tests) npm ERR!
(service: web-codeship-example-node) (step: parallel_tests) npm ERR! Failed at the [email protected] migrate script 'node ./node_modules/db-migrate/bin/db-migrate up all'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
(service: web-codeship-example-node) (step: parallel_tests) npm ERR! If you do, this is most likely a problem with the nodejs-express-todoapp package,
(service: web-codeship-example-node) (step: parallel_tests) npm ERR! not with npm itself.
(service: web-codeship-example-node) (step: parallel_tests) npm ERR! Tell the author that this fails on your system:
(service: web-codeship-example-node) (step: parallel_tests) npm ERR!     node ./node_modules/db-migrate/bin/db-migrate up all
(service: web-codeship-example-node) (step: parallel_tests) npm ERR! You can get information on how to open an issue for this project with:
(service: web-codeship-example-node) (step: parallel_tests) npm ERR!     npm bugs nodejs-express-todoapp
(service: web-codeship-example-node) (step: parallel_tests) npm ERR! Or if that isn't available, you can get their info via:
(service: web-codeship-example-node) (step: parallel_tests) npm ERR!     npm owner ls nodejs-express-todoapp
(service: web-codeship-example-node) (step: parallel_tests) npm ERR! There is likely additional logging output above.
(service: web-codeship-example-node) (step: parallel_tests) 
(service: web-codeship-example-node) (step: parallel_tests) npm ERR! Please include the following file with any support request:
npm ERR!     /usr/app/npm-debug.log
(service: web-codeship-example-node) (step: parallel_tests) 
(service: web-codeship-example-node) (step: parallel_lint) npm info lifecycle [email protected]~postlint: [email protected]
(service: web-codeship-example-node) (step: parallel_lint) npm info ok
(service: postgres) (step: parallel_tests) 2019-04-06 11:41:09.857 UTC [1] LOG:  received smart shutdown request
(service: postgres) (step: parallel_tests) 2019-04-06 11:41:09.860 UTC [1] LOG:  background worker "logical replication launcher" (PID 49) exited with exit code 1
2019-04-06 11:41:09.860 UTC [44] LOG:  shutting down
(service: postgres) (step: parallel_tests) 2019-04-06 11:41:09.888 UTC [1] LOG:  database system is shut down
(service: postgres) (step: parallel_lint) 2019-04-06 11:41:10.057 UTC [1] LOG:  received smart shutdown request
(service: postgres) (step: parallel_lint) 2019-04-06 11:41:10.060 UTC [1] LOG:  background worker "logical replication launcher" (PID 50) exited with exit code 1
(service: postgres) (step: parallel_lint) 2019-04-06 11:41:10.060 UTC [45] LOG:  shutting down
(service: postgres) (step: parallel_lint) 2019-04-06 11:41:10.077 UTC [1] LOG:  database system is shut down
(step: parallel_tests) error ✗
(step: parallel_lint) success ✔
(step: parallel_tests) container exited with a 1 code

404 after deploying to Heroku

Getting bellow error when trying to access app via heroku url https://ofo-nodejs.herokuapp.com/

{"status":"Error","message":"Not Found","code":404,"stackTrace":"Error: Not Found\n    at new NotFound (/app/node_modules/express-simple-errors/lib/errors.js:74:11)\n    at handleNotFound (/app/node_modules/express-simple-errors/lib/errorHandler.js:77:12)\n    at Layer.handle [as handle_request] (/app/node_modules/express/lib/router/layer.js:95:5)\n    at trim_prefix (/app/node_modules/express/lib/router/index.js:317:13)\n    at /app/node_modules/express/lib/router/index.js:284:7\n    at Function.process_params (/app/node_modules/express/lib/router/index.js:335:12)\n    at next (/app/node_modules/express/lib/router/index.js:275:10)\n    at Layer.handle [as handle_request] (/app/node_modules/express/lib/router/layer.js:91:12)\n    at trim_prefix (/app/node_modules/express/lib/router/index.js:317:13)\n    at /app/node_modules/express/lib/router/index.js:284:7"}

I think it might be caused by "todoapp" POSTGRES values in codeship-services.yml or docker-compose.yml (that's another question, I can't figure out when is docker-compose.yml used.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.