Prior to your first deployment, you'll need to Install Fly CLI.
fly auth login
Note: If you have more than one Fly account, ensure that you are signed into the same account in the Fly CLI as you are in the browser. In your terminal, run
fly auth whoami
and ensure the email matches the Fly account signed into the browser.
fly apps create --org personal --name remix-start
Note: Make sure this name matches the
app
set in yourfly.toml
file. Otherwise, you will not be able to deploy.
fly secrets set $(cat .env | xargs -I %s echo %s)
fly volumes create data --size 1 --app remix-start --region sjc
fly deploy
The application will available at https://remix-start.fly.dev
.
Go to the documentation for more information about Fly CLI.
The sqlite database lives at /data/sqlite.db
in your deployed application.
You can connect to the live database by running fly ssh console -C database-cli
.
If you run into any issues deploying to Fly, make sure you've followed all of the steps above and if you have, then post as many details about your deployment (including your app name) to the Fly support community. They're normally pretty responsive over there and hopefully can help resolve any of your deployment issues and questions.