python - flask app : help understanding runnng git managed heroku staging and production environment -
i trying setup staging , production flask app on heroku when try heroku run python run.py --run selflearning-stage
i following error message:
▸ multiple apps in git remotes ▸ usage: --remote prod ▸ or: --app selflearning ▸ local git repository has more 1 app referenced in git remotes. ▸ because of this, can't determine app want run command ▸ against. ▸ specify app want --app or --remote. ▸ heroku remotes in repo: ▸ selflearning (heroku) ▸ selflearning (prod) ▸ selflearning (stage)
so checked repo local config realised have multiple remotes.
[remote "heroku"] url = https://git.heroku.com/selflearning.git fetch = +refs/heads/*:refs/remotes/heroku/* [branch "custom_connection"] remote = origin merge = refs/heads/custom_connection [remote "prod"] url = https://git.heroku.com/selflearning.git fetch = +refs/heads/*:refs/remotes/prod/* [remote "stage"] url = https://git.heroku.com/selflearning.git fetch = +refs/heads/*:refs/remotes/stage/*
technically think heroku
, prod
remote same using heroku deploy master branch before created prod
, stage
recently.
so quesiton how can check heroue app in staging , put production?
i have 1 selflearning.herokuapp.com . need have 1 selflearning-staging.herokueapp.com should point staging remote set locally ?
i ran following command heroku run python run.py --run selflearning --remote stage
running python run.py --run selflearning on ⬢ selflearning... up, run.9513 (free) /app/.heroku/python/lib/python2.7/site-packages/flask/exthook.py:71: extdeprecationwarning: importing flask.ext.sqlalchemy deprecated, use flask_sqlalchemy instead. .format(x=modname), extdeprecationwarning /app/.heroku/python/lib/python2.7/site-packages/flask/exthook.py:71: extdeprecationwarning: importing flask.ext.sqlalchemy._compat deprecated, use flask_sqlalchemy._compat instead. .format(x=modname), extdeprecationwarning using:config.stagingconfig * running on http://0.0.0.0:5402/ (press ctrl+c quit)
but if launch http://0.0.0.0:5402/
or http://127.0.0.1:5402/
or https://selflearning.herokuapp.com:5402
nothing opens.
Comments
Post a Comment