Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

botの投稿先リポジトリをコードではなく環境変数で指定するように変更 #9

Open
1 task done
attache-case opened this issue Jul 6, 2017 · 0 comments

Comments

@attache-case
Copy link
Owner

attache-case commented Jul 6, 2017

botの投稿先リポジトリがコードに直書きされている
https://github.com/attache-case/omoitsukibot/blob/master/plugins/Github_func.py#L12-L14
ので、

botが稼働しているheroku側で環境変数として

GITHUB_REPO_OWNER = IIS-Lab
GITHUB_REPO_NAME = LightBulb

を登録したのち、(IIS-Labでの運用の場合)

コードの該当部分を

REPO_OWNER = os.environ.get('GITHUB_REPO_OWNER')
REPO_NAME = os.environ.get('GITHUB_REPO_NAME')

に直す。

  • Herokuに環境変数を登録しました。(現在herokuが@attache-caseのアカウントで動いているので、環境変数登録が終わるまでお待ちを・・・)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant