-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdeploying_apps.txt
47 lines (34 loc) · 1.04 KB
/
deploying_apps.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
##################################
# Bare minimum files
##################################
main.py # runs the flask app
app.yaml # specify deployment configuration
requirements.txt # python package requirements
##################################
# Test the App before deploying
##################################
# create a virtual environment
virtualenv --python python3 ~/envs/pokemon
# activate it
source ~/envs/pokemon/bin/activate
# use pip to install dependencies
pip install -r requirements.txt
# run the app in the virtualenv
python main.py
##################################
# Deploying to Google App Engine
##################################
# create the app (skip this??)
gcloud app create
# deploy the app
gcloud app deploy app.yaml --project best-pokemon
# load the webapp!
gcloud app browse --project=best-pokemon
##################################
# Gcloud notes
##################################
# from terminal
gcloud info
# console.cloud.google.com/...
App Engine > Dashboard
App Engine > Settings > Disable App