hello world with migrations
npm install
npm run dev
- 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
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
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.