Giter VIP home page Giter VIP logo

Comments (7)

scottrobertson avatar scottrobertson commented on September 11, 2024

http://stackoverflow.com/a/14280500 might help?

from slack-hubot.

pborreli avatar pborreli commented on September 11, 2024

@scottrobertson I don't get it, do you recommend to access or export HEROKU_URL = URL at startup ?

from slack-hubot.

dzuelke avatar dzuelke commented on September 11, 2024

Why do you need the URL?

from slack-hubot.

pborreli avatar pborreli commented on September 11, 2024

@dzuelke it's explained here

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.

dzuelke avatar dzuelke commented on September 11, 2024

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.

pborreli avatar pborreli commented on September 11, 2024

@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.

hkedia321 avatar hkedia321 commented on September 11, 2024

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 photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.