-
Notifications
You must be signed in to change notification settings - Fork 1
Home
Jackson Dearing edited this page Aug 27, 2020
·
7 revisions
To run all unit tests:
python2.7 -m unittest discover -p 'test_*'
Create a virtual environment:
virtualenv venv
Enter the virtual environment called venv:
source venv/bin/activate
Exit the virtual environment:
deactivate
Initialise gcloud:
./~/google-cloud-sdk/bin/gcloud init
Update the requirements.txt based on pip within the venv:
pip freeze > requirements.txt
Install the requirements into the lib dir
pip install -t lib -r requirements.txt
Run a test server (similar to what will be deployed):
dev_appserver.py --application=sub-auto app.yaml
Access the test application file storage:
http://localhost:8000/datastore
Deploy application:
~/google-cloud-sdk/bin/gcloud app deploy
GCS Storage:
https://console.cloud.google.com/storage/browser/sub-auto.appspot.com;tab=objects?forceOnBucketsSortingFiltering=false&project=sub-auto&prefix=
Pull down changes from remote master:
git pull
Checkout a new branch:
get checkout -b new-branch-name
Make some changes, then commit them:
git add file1 file2
git commit -m "Short message about changes"
Push the branch up to remote:
git push origin new-branch-name
Then a pull request can be started on GitHub.