Adding Procfile and buildpack-run.sh #47
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request adds the following:
What will it do?
As of now, users can now fork avaire's repo. And edit the config.yml to their liking. When they add the correct buildpacks their build succeeds and will be running.
What it won't do?
It won't have any effect to how avaire is running now. The files are only used if you prefer hosting in Heroku.
The files don't contain any template (app.json), and therefore the user has to add the following themselfs in their heroku app:
Buildpacks: (The order matters!)
Enviroment variables:
What is left to do?
Avaire could/should use enviroment variables too instead of using the config.yml. This way, users don't expose their bot token/clientid/etc to the public. This way also enables users to quicker change these keys too. And finnaly, some configurations are automatically done for the user. Like the JAWSDB_URL enviroment variable, that is automatically set, when the mysql add-on is added.
The wrapper.jar is needed too, but this will be already added by the maintainer himself.
If you have any question regrading the pull, please feel free to ask :-)
Refs:
https://devcenter.heroku.com/articles/procfile
https://github.com/weibeld/heroku-buildpack-run