Last active
June 15, 2023 18:05
-
-
Save siriokun/ec171a0875f58b185c7c16c74aa4175d to your computer and use it in GitHub Desktop.
fly.io for ghost
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# See https://fly.io/docs/reference/configuration/ for information about how to use this file. | |
# | |
app = "sitename" | |
primary_region = "cdg" | |
[build] | |
image = "ghost:5.49-alpine" | |
[mounts] | |
source="data" | |
destination="/var/lib/ghost/content" | |
[http_service] | |
internal_port = 2368 | |
force_https = true | |
auto_stop_machines = false | |
auto_start_machines = false | |
min_machines_running = 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
flyctl launch --name sitename --image=ghost:latest --region cdg --no-deploy | |
flyctl volumes create data --region cdg --size 1 | |
## change fly.toml above | |
flyctl secrets set url=https://sitename.fly.dev | |
flyctl secrets set NODE_ENV=development | |
flyctl secrets set database__connection__filename=/var/lib/ghost/content/data/ghost-dev.db | |
flyctl deploy |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Persistent Storage