-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Deploy fitbit-challenges on Fly.io (#334)
- Loading branch information
1 parent
a3baf79
commit aac09f9
Showing
4 changed files
with
105 additions
and
0 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# fly.toml app configuration file generated for fitbit-challenges-api on 2024-08-02T20:16:37-04:00 | ||
# | ||
# See https://fly.io/docs/reference/configuration/ for information about how to use this file. | ||
# | ||
|
||
app = 'fitbit-challenges-api' | ||
primary_region = 'ewr' | ||
|
||
[build] | ||
image = 'shaldengeki/fitbit-challenges-api:latest' | ||
|
||
[deploy] | ||
release_command = '/fitbit_challenges/api/migrations/binary /fitbit_challenges/api/migrations ./binary.runfiles/_main/fitbit_challenges/api/migrations/alembic.ini upgrade' | ||
|
||
[env] | ||
API_PORT = '5000' | ||
FLASK_APP = 'app.py' | ||
FLASK_DEBUG = 'false' | ||
FRONTEND_HOST = 'fitbit.ouguo.us' | ||
FRONTEND_PORT = '' | ||
FRONTEND_PROTOCOL = 'https' | ||
|
||
[http_service] | ||
internal_port = 5000 | ||
force_https = true | ||
auto_stop_machines = 'stop' | ||
auto_start_machines = true | ||
min_machines_running = 0 | ||
processes = ['app'] | ||
|
||
[[vm]] | ||
memory = '512mb' | ||
cpu_kind = 'shared' | ||
cpus = 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# flyctl launch added from .gitignore | ||
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. | ||
|
||
# dependencies | ||
node_modules | ||
.pnp | ||
**/.pnp.js | ||
|
||
# testing | ||
coverage | ||
|
||
# production | ||
build | ||
**/App.css | ||
|
||
# misc | ||
**/.DS_Store | ||
**/.env.local | ||
**/.env.development.local | ||
**/.env.test.local | ||
**/.env.production.local | ||
|
||
**/npm-debug.log* | ||
**/yarn-debug.log* | ||
**/yarn-error.log* | ||
fly.toml |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# fly.toml app configuration file generated for fitbit-challenges-frontend on 2024-08-02T20:27:45-04:00 | ||
# | ||
# See https://fly.io/docs/reference/configuration/ for information about how to use this file. | ||
# | ||
|
||
app = 'fitbit-challenges-frontend' | ||
primary_region = 'ewr' | ||
|
||
[build] | ||
image = 'shaldengeki/fitbit-challenges-frontend:latest' | ||
|
||
[env] | ||
REACT_APP_API_HOST = 'api.fitbit.ouguo.us' | ||
REACT_APP_API_PORT = '443' | ||
REACT_APP_API_PROTOCOL = 'https' | ||
REACT_APP_PORT = '80' | ||
|
||
[http_service] | ||
internal_port = 80 | ||
force_https = true | ||
auto_stop_machines = 'stop' | ||
auto_start_machines = true | ||
min_machines_running = 0 | ||
processes = ['app'] | ||
|
||
[[vm]] | ||
memory = '256mb' | ||
cpu_kind = 'shared' | ||
cpus = 1 |