Browse Source

🩹remove config space

main
guidezSeb 5 years ago
parent
commit
0f6257d0ec
  1. 5
      .circleci/config.yml
  2. 1
      conduit/settings.py

5
.circleci/config.yml

@ -27,7 +27,6 @@ jobs:
name: Install requirements name: Install requirements
command: pip install -r requirements/dev.txt command: pip install -r requirements/dev.txt
- save_cache: - save_cache:
key: deps-{{ checksum "requirements/dev.txt"}}-{{ .Environment.CACHE_VERSION }} key: deps-{{ checksum "requirements/dev.txt"}}-{{ .Environment.CACHE_VERSION }}
paths: paths:
@ -73,10 +72,8 @@ jobs:
- run: - run:
name: Deploy main to heroku name: Deploy main to heroku
command: git push https://heroku:$HEROKU_API_KEY@git.heroku.com/$HEROKU_APP_NAME.git main command: git push https://heroku:$HEROKU_API_KEY@git.heroku.com/$HEROKU_APP_NAME.git main
- run: - run:
name: Smoke test check
name: Smoke test
command: HTTPCODE=`curl -s -o /dev/null -w "%{http_code}" https://$HEROKU_APP_NAME.herokuapp.com/api/articles`; command: HTTPCODE=`curl -s -o /dev/null -w "%{http_code}" https://$HEROKU_APP_NAME.herokuapp.com/api/articles`;
if [[ "$HTTPCODE" -ne 200 ]];then if [[ "$HTTPCODE" -ne 200 ]];then
echo "heroku app not responding, failing to deploy" && exit 1; echo "heroku app not responding, failing to deploy" && exit 1;

1
conduit/settings.py

@ -28,6 +28,7 @@ class Config(object):
'http://0.0.0.0:' + os.environ.get('PORT', '8080'), 'http://0.0.0.0:' + os.environ.get('PORT', '8080'),
'https://0.0.0.0:' + os.environ.get('PORT', '8080'), 'https://0.0.0.0:' + os.environ.get('PORT', '8080'),
'https://reverent-swanson-5ad65a.netlify.app', 'https://reverent-swanson-5ad65a.netlify.app',
'http://reverent-swanson-5ad65a.netlify.app',
os.environ.get('FRONT_PROD_URL', ''), os.environ.get('FRONT_PROD_URL', ''),
] ]
JWT_HEADER_TYPE = 'Token' JWT_HEADER_TYPE = 'Token'

Loading…
Cancel
Save