Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Host staticman v2 API on heroku

Host staticman v2 API on heroku

  • Creat a new github account which will be added as collaborator to the project using staticman.
  • Go to settings -> developer settings -> personal access tokens. Create a token with admin:repo_hook permission.
  • Save the token.

  • Create a new app on heroku
  • Setup ENV variables
    • Set NODE_ENV to production
    • Set GITHUB_TOKEN to the token generated above
    • Set RSA_PRIVATE_KEY to rsa key created by openssl genrsa -out key.pem
  • Fork staticman
  • Under deploy tab in heroku use Github as deployment method.
  • Select dev branch and deploy

ref -

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.