-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* first step * updated pipfiles * updated procfile for heroku * temporarily setting debug to true in prod * trying something else * trying stuff again * got it deployed, db doesnt work yet * forms * god why wont this work * IT LIVES * almost * almost * god pls work * I am a code god * deleted outdated fixture and added comment Former-commit-id: 4bf0539
- Loading branch information
1 parent
4aea178
commit 7fb4fe9
Showing
16 changed files
with
178 additions
and
452 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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# This file specifies files that are *not* uploaded to Google Cloud Platform | ||
# using gcloud. It follows the same syntax as .gitignore, with the addition of | ||
# "#!include" directives (which insert the entries of the given .gitignore-style | ||
# file at that point). | ||
# | ||
# For more information, run: | ||
# $ gcloud topic gcloudignore | ||
# | ||
.gcloudignore | ||
# If you would like to upload your .git directory, .gitignore file or files | ||
# from your .gitignore file, remove the corresponding line | ||
# below: | ||
.git | ||
.gitignore | ||
|
||
# Python pycache: | ||
__pycache__/ | ||
# Ignored by the build system | ||
/setup.cfg | ||
|
||
# Pipenv stuff | ||
Pipfile | ||
Pipfile.lock |
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 |
---|---|---|
|
@@ -135,3 +135,4 @@ dmypy.json | |
/node_modules/ | ||
/csrs/ | ||
|
||
/staticfiles/ |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,31 @@ | ||
runtime: python39 | ||
env: standard | ||
entrypoint: gunicorn -b :$PORT config.wsgi | ||
|
||
|
||
handlers: | ||
# This configures Google App Engine to serve the files in the app's static | ||
# directory. | ||
- url: /static | ||
static_dir: staticfiles/ | ||
|
||
# This handler routes all requests not caught above to your main app. It is | ||
# required when static routes are defined, but can be omitted (along with | ||
# the entire handlers section) when there are no static files defined. | ||
- url: /.* | ||
script: auto | ||
|
||
# This sample incurs costs to run on the App Engine flexible environment. | ||
# The settings below are to reduce costs during testing and are not appropriate | ||
# for production use. For more information, see: | ||
# https://cloud.google.com/appengine/docs/flexible/python/configuring-your-app-with-app-yaml | ||
manual_scaling: | ||
instances: 1 | ||
resources: | ||
cpu: 1 | ||
memory_gb: 0.5 | ||
disk_size_gb: 10 | ||
|
||
env_variables: | ||
DJANGO_SETTINGS_MODULE: "config.settings.prod" | ||
DJANGO_SECRET_KEY: "42)%4yx)aa@a=+_c(fn&kf3g19xax+=+a&key4i=!98zyim=8j" |
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,29 @@ | ||
from .base import * | ||
|
||
# https://docs.djangoproject.com/en/dev/ref/settings/#debug | ||
DEBUG = True | ||
# https://docs.djangoproject.com/en/dev/ref/settings/#std:setting-SECRET_KEY | ||
SECRET_KEY = '43)%4yx)aa@a=+_c(fn&kf3g29xax+=+a&key9i=!98zyim=8j' | ||
|
||
import pymysql | ||
|
||
pymysql.version_info = (1, 4, 6, 'final', 0) | ||
pymysql.install_as_MySQLdb() | ||
|
||
DATABASES = { | ||
'default': { | ||
'ENGINE': 'django.db.backends.mysql', | ||
'HOST': '127.0.0.1', | ||
'PORT': '3306', | ||
'USER': 'django', | ||
'PASSWORD': 'cs3', | ||
'NAME': 'django_data', | ||
} | ||
} | ||
|
||
""" | ||
To run the proxy: | ||
cloud_sql_proxy.exe -instances="rapid-league-302721:us-east1:my-sql-db"=tcp:3306 | ||
dont forget to change manage.py settings to this file | ||
""" |
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 |
---|---|---|
@@ -1,8 +1,22 @@ | ||
from .base import * | ||
import socket | ||
import os | ||
|
||
# https://docs.djangoproject.com/en/dev/ref/settings/#debug | ||
DEBUG = False | ||
# https://docs.djangoproject.com/en/dev/ref/settings/#std:setting-SECRET_KEY | ||
SECRET_KEY = os.environ.get('DJANGO_SECRET_KEY') | ||
|
||
import pymysql | ||
|
||
pymysql.version_info = (1, 4, 6, 'final', 0) | ||
pymysql.install_as_MySQLdb() | ||
|
||
|
||
DATABASES = { | ||
'default': { | ||
'ENGINE': 'django.db.backends.mysql', | ||
'HOST': '/cloudsql/rapid-league-302721:us-east1:my-sql-db', | ||
'USER': 'django', | ||
'PASSWORD': 'cs3', | ||
'NAME': 'django_data' | ||
} | ||
} |
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 |
---|---|---|
@@ -1,7 +1,10 @@ | ||
import os | ||
|
||
from django.core.wsgi import get_wsgi_application | ||
from whitenoise import WhiteNoise | ||
|
||
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'config.settings.dev') | ||
|
||
application = get_wsgi_application() | ||
|
||
application = WhiteNoise(application, root='/staticfiles') |
Oops, something went wrong.