git clone https://github.com/tuwarerepo/tuware-website2.git
orgit clone [email protected]:tuwarerepo/tuware-website2.git
cd tuware-website2
nvm install lts/erbium
ornvm use
npm install
git submodule init && git submodule update
npm start
(to run development environment)
mkvirtualenv -p python3.7 tuware-website-2020
Add these lines to .virtualenvs/tuware-website-2020/bin/postactivate
and replace [PATH_TO_YOUR_REPOSITORY]
with the path
export FLASK_APP="main.py"
export FLASK_ENV="development"
export FLASK_CONFIG="development"
export FLASK_RUN_PORT="8080"
export CLOUDSDK_PYTHON="`which python3.7`"
export PRIMARY_BRAND="tuware"
export ALLOW_CONFIG_OVERRIDE="true"
export GOOGLE_APPLICATION_CREDENTIALS="[PATH_TO_YOUR_REPOSITORY]/tuware-website-2020/tuware-google-service-account-credentials.json"
export SECRET_KEY="8GphcNUsgkGfMKVS8876AkKypDNTbFQrfnGKzSZEZMpcArVzx2xwwzfA4RnyjCxvVdnhvt"
export GAE_USE_SOCKETS_HTTPLIB="anyvalue"
Make sure you've downloaded Google Service Account Credentials.
deactivate
workon tuware-website-2020
pip install -r requirements.txt
pip install -r requirements.txt -t lib/
ONLY if cleaning is necessary:
npm cache clean --force
rm -r node_modules/
rm package-lock.json
Default installation process:
nvm install lts/erbium
ornvm use
npm install
npm audit fix
npm run-script build
npm run-script build
Add code changes in the dist/ directory and push to remote
gcloud app deploy