简体   繁体   中英

How can manage other heroku app in my rails app?

Is there is any way to manage other heroku app, via using api in my heroku rails application. I have to start/stop/restart other heroku application.

how can I do that functionality via any api.?

Thanks for the help.

You can issue calls to the Heroku API to achieve this. It uses OAuth to authorize the requests.

See the docs for Heroku Plartform API or check out the workless gem for an example. The workless gem starts and stops worker dynos on demand to save you dyno hours.

The workless gem uses environment variables to store OAuth key/token; to manage more than one application it will make sense to store this information in a database.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM