:eyes: GitHub Pages, for GitLab.
GitHub Pages, for GitLab.
It requires Jekyll to be installed. GitLab Pages will build Jekyll sites or simply copy content from non-jekyll sites to
Create a SSH key pair for GitLab to use as deploy keys.
ssh-keygen -t rsa -C "[email protected]" -f "$(pwd)/keys/id_rsa"
They should be in path
Clone this repo and install it's necessary dependencies:
# Already cloned repo npm install bower install
Copy default config to custom config file.
cp default_config.js _config.js
Edit your new _config.js file for your setup.
And start the server!
Docker support is also available and the following env vars are used to configure the installation: * GITLABURL - Url to your gitlab server * DEPLOYBRANCH - Specific branch that will be deployed when pushed * DEPLOYPAGEDIR - Public directory of GitLab Pages * SERVERURL - The public gitlab-pages server url
The /app/keys directory SHOULD be mount using docker volumes, this will allow you to use leave the ssh key outside of the docker. If the rsa key doesn't exist the docker_start.sh script will generate it.
Login using your GitLab User Token at http://localhost:1337.
gl-pagesbranch is checked out with nodegit. (This can optionally be configured to be
gh-pagesbranch to work on both GitHub and GitLab).
server.publicUrl/pages/:username/:projectName/. It is recommended that the
publicPagesDirbe served using Nginx or Apache.