-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add proportional to results page (#218)
* Add proportional to results page * Modify template. * Trunk formatting. Fix little nits. * Fixed styling. LGTM * Trunk formatting. Fix little nits. * Sanitize branchnames for deployment * Sanitize branchnames for deployment * Change url name * change fly review specs and have them autosuspend. * Set django settings module * Set django settings module * Fix fly allowed hosts issue * Add fly url to CORS CSRF whitelists. * Add https to origins * Finally think we're ready for review.
- Loading branch information
Showing
5 changed files
with
184 additions
and
17 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,7 @@ on: | |
env: | ||
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }} | ||
# Set these to your Fly.io organization and preferred region. | ||
FLY_REGION: iad | ||
FLY_REGION: sjc | ||
FLY_ORG: personal | ||
|
||
jobs: | ||
|
@@ -36,4 +36,6 @@ jobs: | |
id: deploy | ||
uses: superfly/[email protected] | ||
with: | ||
secrets: DEBUG=true | ||
name: vote-es-pr-${{ github.event.number }} | ||
config: fly.pr-review.toml | ||
secrets: DJANGO_SETTINGS_MODULE=approval_polls.settings |
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
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,33 @@ | ||
# fly.toml app configuration file generated for vote-electionscience-org on 2024-01-27T11:17:40-08:00 | ||
# | ||
# See https://fly.io/docs/reference/configuration/ for information about how to use this file. | ||
# | ||
|
||
app = 'vote-electionscience-org' | ||
primary_region = 'sjc' | ||
console_command = '/code/manage.py shell' | ||
|
||
[build] | ||
|
||
[env] | ||
PORT = '8000' | ||
|
||
[http_service] | ||
auto_stop_machines = "suspend" | ||
internal_port = 8000 | ||
force_https = true | ||
auto_start_machines = true | ||
min_machines_running = 0 | ||
processes = ['app'] | ||
|
||
[[vm]] | ||
kind = 'shared-cpu-1x' | ||
memory_mb = 256 | ||
|
||
[[statics]] | ||
guest_path = '/code/static' | ||
url_prefix = '/static/' | ||
|
||
[mounts] | ||
source = "litefs" | ||
destination = "/data" |