· Language(s): Front end is HTML + Backend is Python
· Frameworks: Flask
· Development and production web server: Flask build-in. NGINX
· Testing frameworks: unittest module built in to the Python standard library.
· Persistent Storage: mySQL
· Caching: Redis
· API technology: REST
brew install heroku/brew/heroku
heroku login
heroku create
heroku addons:create cleardb:ignite -a quiet-inlet-97604
heroku config -a quiet-inlet-97604 | grep CLEARDB_DATABASE_URL
pip install PyMySQL
testing database:
heroku addons:create cleardb:ignite -a fast-reaches-11674
heroku config -a fast-reaches-11674 | grep CLEARDB_DATABASE_URL
Flask activate the vitual environment: python3 -m venv venv
. venv/bin/activate
pip install -e .
(outside of the project folder)
export FLASK_APP=groupnest
export FLASK_ENV=development
export DATABASE_URL=mysql://b4fda20e6f61ef:[email protected]/heroku_46f4b90a3346330
export TEST_DATABASE_URL=mysql://b51ab60be50de0:[email protected]/heroku_36faaceaabbea7e
flask init-db
flask run
git pull origin yangsun
terminal在根目录下
touch .gitignore
打开.gitignore输入*.pyc
如果已经出现了pyc,就在terminal根目录下输入find . -name "*.pyc" -exec git rm -f "{}" ;
git clone https://github.com/flashyang/CloudService.git git clone -b yangsun https://github.com/flashyang/CloudService
cd CloudService
git add -A
git commit -m "something"
git push -u 或者
git push -u origin master
TODO:
- Google login - Stan
- Jenkins pipeline - yang sun
- Database - Qian
- Cache - Can
- Deploy NGix + WSGI – Yang Li