Badgeyay: Autodeploy project to Heroku

Created on 4 Jun 2017  路  7Comments  路  Source: fossasia/badgeyay

Autodeploy project to Heroku on each new merged commit.

Enhancement has-PR

Most helpful comment

@jajodiaraghav I will work on this

All 7 comments

Can someone without admin access to the repo deploy to heroku? If yes, then I would like to work on this.

There are several things involved:

  1. Add a configuration which can be deployed to heroku (possible for people without write access)
  2. Create a hook which deploys this to heroku (possible for people with admin right, not me)

So, you can go ahead and create a "deploy to heroku button"/a heroku configuration. If this is done, the admin has alsmost no effort, I believe, to add the hook.

I was testing the app by deploying to heroku. Link: https://badegyay.herokuapp.com/

The shell script merge_badges.sh doesn't work. It failed with error sudo command not found
Any idea how to fix this?

Yes, sudo is not available under heroku. The build script needs some packages installed:
https://github.com/fossasia/badgeyay/search?utf8=%E2%9C%93&q=sudo&type=
You can remove this error by installing the packages before with a heroku config, if that is possible. While Heroku runs, you can not change the system too much.
Travis installs them before, as you can see in the search.

Here is a little help in case someone wants to work on this:

  1. Create Aptfile like so: https://github.com/jajodiaraghav/badgeyay/blob/heroku/Aptfile
  2. Create Procfile like so: https://github.com/jajodiaraghav/badgeyay/blob/heroku/Procfile
  3. Add gunicorn in requirements.txt
  4. Add symlink of requirements.txt in root folder

@jajodiaraghav I will work on this

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mariobehling picture mariobehling  路  6Comments

rupav picture rupav  路  4Comments

niccokunzmann picture niccokunzmann  路  7Comments

0x48piraj picture 0x48piraj  路  8Comments

ParthS007 picture ParthS007  路  6Comments