- An account on fly.io, accessible at https://fly.io/ (A valid credit card is required).
- Install the flyctl Command-Line Interface (CLI) by referring to the guide at https://fly.io/docs/getting-started/installing-flyctl/.
- Log in to flyctl using the command:
flyctl auth login
- Clone the repository using the following command:
git clone https://github.com/hu3rror/memos-on-fly
- Rename the
fly_no_litestream_example.toml
file tofly.toml
and input or modify the necessary values. - Launch and initialize the application with the command:
flyctl launch
- When prompted with
Would you like to copy its configuration to the new app?
, typeY
to confirm. - Choose a unique and non-conflicting name for the app.
- When asked to set up a Postgresql database or an Upstash Redis database, type
N
to decline, as they are not required for this app. - Review the deployment configuration in
fly.toml
. If correct, typeY
to deploy the app; otherwise, typeN
to edit the file. - If modifications were made to the
fly.toml
file, deploy the app using:
flyctl deploy
- Wait a few minutes for the app to deploy, then access it at
https://<your-app-name>.fly.dev
. Alternatively, open the app in your browser with the command:
flyctl open
- To deploy with only one machine, use the following command (Note: This is not recommended):
flyctl deploy --ha=false
- To scale up the memory (MiB) for the app, use the command:
flyctl scale memory 512
We hope this information proves beneficial.