# install psql
# Follow steps from website
# install sqlx
cargo install sqlx
# init database
./scripts/init_db.sh
SKIP_DOCKER=true ./scripts/init_db.sh
cargo sqlx prepare -- --lib
docker build --tag email-newsletter --file Dockerfile .
heroku login
docker login --username=<email_add_used_to_signup_to_heroku> password=$(heroku auth:token) registry.heroku.com
heroku container:login
docker images
docker tag email-newsletter registry.heroku.com/rust-email-newsletter/web
heroku container:push web -a rust-email-newsletter
heroku container:release web -a rust-email-newsletter