The one click deploy button makes it easy for the users of loklak to get their own cloud instance created and deployed in their heroku account and can be used according to their flexibility. Heroku uses an app.json manifest in the code repo to figure out what add-ons, config and other deployment steps are required to make the code run. This is used to configure and deploy the app.
Once you have provide the app name and then click on deploy button, Heroku will start deploying the loklak server to a new app on your account:
When setup is complete, you can open the deployed app in your browser or inspect it in Dashboard.
All these steps and requirements can now be encoded in an app.json file and placed in a repo alongside a button that kicks off the setup with a single click.
App.json is a manifest format for describing apps and specifying what their config requirements are. Heroku uses this file to figure out how code in a particular repo should be deployed on the platform. Here is the loklak’s app.json file which used gradle build pack:
If you are interested you can try deploying the peer from here itself. Checkout how simple it can be to deploy.
- Read more about heroku one click deploy button: https://devcenter.heroku.com/articles/heroku-button
- How to write app.json file for your application: https://blog.heroku.com/introducing_the_app_json_application_manifest