Comments (7)
http://stackoverflow.com/a/14280500 might help?
from slack-hubot.
@scottrobertson I don't get it, do you recommend to access or export HEROKU_URL = URL
at startup ?
from slack-hubot.
Why do you need the URL?
from slack-hubot.
In addition, there is one special environment variable for Heroku. The default hubot Procfile marks the process as a 'web' process type, in order to support serving http requests (more on that in the scripting docs). The downside of this is that dynos will idle after an hour of inactivity. That means your hubot would leave after an hour of idle web traffic, and only rejoin when it does get traffic. This is extremely inconvenient since most interaction is done through chat, and hubot has to be online and in the room to respond to messages. To get around this, there's a special environment variable to make hubot regularly ping itself over http. If the app is deployed to http://rosemary-britches-123.herokuapp.com/, you'd configure:
heroku config:set HEROKU_URL=http://rosemary-britches-123.herokuapp.com
from slack-hubot.
Ah. Yeah, there's not really a way right now. You could put it into the env vars section as a required var with no value, and make the description so that it tells users to pick their own app name when creating the app through the button and then set the URL accordingly.
from slack-hubot.
@dzuelke that should be really great if there was a way, that would remove one annoying step,
I will try to see if it's possible to modify hubot source code to find by itself the url, not sure if it's possible but can worth the effort, thanks for your feedback !
from slack-hubot.
Hi @pborreli @dzuelke @scottrobertson I am facing exact same problem for another bot I am developing. If anyone got any solution can you please share? Thanks!
from slack-hubot.
Related Issues (1)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from slack-hubot.