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

自身のurlを取得したい #3

Open
ahuglajbclajep opened this issue Feb 25, 2017 · 1 comment
Open

自身のurlを取得したい #3

ahuglajbclajep opened this issue Feb 25, 2017 · 1 comment

Comments

@ahuglajbclajep
Copy link
Owner

ahuglajbclajep commented Feb 25, 2017

画像のurl生成時に自分のurlが必要
Heroku上でAPP_NAMEApp Nameと同じ値を設定することで対処しているが、App Nameは必須ではない
できれば内部から取得できるようにしたい

@ahuglajbclajep
Copy link
Owner Author

http://stackoverflow.com/questions/12570579/how-to-get-heroku-app-name-url-from-inside-the-app
ではdynoのメタデータ(env)を取得しており、HEROKU_APP_NAMEApp Nameが確認できるがSystem.getenv(”HEROKU_APP_NAME”)では取得できなかった

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