Skip to content

Latest commit

 

History

History
57 lines (37 loc) · 734 Bytes

File metadata and controls

57 lines (37 loc) · 734 Bytes

simple sample node knex

hello world with migrations

npm install
npm run dev

migrations mini-how-to

  • New migration:
npx knex migrate:make another_migration
  • Running all up
npx knex migrate:latest
  • Running all down
npx knex migrate:rollback

See knexfile.js for database details

Docker image

Build with:

docker build -t testing-docker-node .

Run with:

docker run --rm -it testing-docker-node

You might need to delete image:

docker rmi testing-docker-node

deploy

Run fly login, fly launch and fly deploy.

Fly lauch will provision a Dockerfile and a github action. after that you can deploy by commit, which is great.