Skip to content

Instantly share code, notes, and snippets.

Embed
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 - https://vincenttam.gitlab.io/post/2018-09-16-staticman-powered-gitlab-pages/2/

@VincentTam

This comment has been minimized.

Copy link

commented Sep 12, 2019

Staticman v3 API is available. It allows support for GitLab. You might want to update your gist.

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.