mirror of
https://github.com/gooba42/adventureland.git
synced 2026-10-14 18:39:27 -05:00
python3 compatibility + webapp to flask refactoring
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
Install google-cloud-sdk from: https://cloud.google.com/sdk/docs/install
|
||||
|
||||
Replace app.yaml with the python3 one
|
||||
|
||||
python3 CLOUD_SDK_ROOT/bin/dev_appserver.py OPTION yaml_path FILES
|
||||
|
||||
The python3 dev_appserver uses Java objects, test it according to your needs and performance expectations, I personally favor Python2 still [27/01/24]
|
||||
|
||||
Useful: https://cloud.google.com/appengine/docs/standard/tools/local-devserver-command?tab=python
|
||||
|
||||
alias run_thegame3="python3.11 /Users/kaan/Desktop/APPENGINE/google-cloud-sdk/bin/dev_appserver.py --storage_path=/Users/kaan/Desktop/DEPLOY/python3/storage/ --blobstore_path=/Users/kaan/Desktop/DEPLOY/python3/storage/blobstore/ --datastore_path=/Users/kaan/Desktop/DEPLOY/python3/storage/new_db.bin --host=0.0.0.0 --port=8083 /Users/kaan/Desktop/DEPLOY/python3/thegame/ --require_indexes --enable_host_checking=False"
|
||||
|
||||
Suggestions:
|
||||
1) Invoke /admin/make with your email put in admin.py
|
||||
2) From /admin/executor - call empty_fill_maps()
|
||||
3) After getting rid of the initial errors, figure out the rest
|
||||
@@ -0,0 +1,34 @@
|
||||
version: 4 #2-new UI | 3-new font dynamics | 4-python3
|
||||
runtime: python312
|
||||
app_engine_apis: true
|
||||
threadsafe: true
|
||||
api_version: 1
|
||||
builtins:
|
||||
- deferred: on
|
||||
|
||||
#F2/F4: same warmup handler performance [14/10/14]
|
||||
instance_class: F2
|
||||
automatic_scaling:
|
||||
min_idle_instances: 0
|
||||
max_idle_instances: 1
|
||||
min_pending_latency: 6000ms
|
||||
max_pending_latency: 12000ms
|
||||
|
||||
default_expiration: "4d"
|
||||
|
||||
handlers:
|
||||
- url: /favicon\.ico
|
||||
static_files: images/favicon.ico
|
||||
upload: favicon\.ico
|
||||
- url: /css
|
||||
static_dir: css
|
||||
- url: /images
|
||||
static_dir: images
|
||||
- url: /img/
|
||||
static_dir: images/screenshots
|
||||
- url: /sounds
|
||||
static_dir: sounds
|
||||
- url: /js
|
||||
static_dir: js
|
||||
- url: .*
|
||||
script: auto
|
||||
@@ -0,0 +1,3 @@
|
||||
Flask
|
||||
lxml
|
||||
appengine-python-standard
|
||||
Reference in New Issue
Block a user