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:rollbackSee knexfile.js for database details
Build with:
docker build -t testing-docker-node .Run with:
docker run --rm -it testing-docker-nodeYou might need to delete image:
docker rmi testing-docker-nodeRun 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.