package.jsonfile contains the following:
docpad generate --env static
Procfilefile inside your project that contains:
deploy.shfile by changing the
# Deploymentsection to the following lines. You can see a complete example of the deploy.sh file here.
web.configfile in the
staticdirectory of your site with the URL rewrite rules shown below. These rules remove the HTML extensions from your URLs. You can see the main portions of this
web.configfile below. You can download the complete file here.
regenerateEveryproperty from your DocPad Configuration File if you have set it, as it will no longer be needed.
Travis CI Deployerthat has
public_repochecked (uncheck everything else), make note of the token we'll use it later (this same token can be used for all the repos you have access to).
.pubat the end, which is the public key, and one without
.pubwhich is the private key.
Project Settings -> Tweaks -> Environment Variables
Project Settings -> Permissions -> SSH Permissions. Set the hostname to
github.com. Use the contents of the private key file for the private key text area.
Settings -> Deploy Keys -> Add deploy key. Specify the title as
CircleCI Deploymentor whatever you like and set the key text area to the contents of the public key. Allow write access.
Webhooks & Services -> Add webhook
Payload URLto be:
Content typeto be
Just the push event, and check
.gitlab-ci.ymlto project root: