For offline development of GitPitch presentations.
Start docker images:
docker-compose up
View presentations:
http://localhost:9000/<username>/<repo>/<branch>[?p=<presentation>]
For example: http://localhost:9000/shiltemann/presentations/slides?p=2018-GalaxyEU
Open up GitLab (http://localhost:8081) and register an account with same username as on GitHub. Then create a repository with same name as the one you are testing has on GitHub
Add the the local Gitlab as a remote for the repo:
$ git remote add gitpitch http://localhost:8081/shiltemann/presentations.git
# or, to enable pushing via SSH:
$ git remote add gitpitch ssh://git@localhost:8022/shiltemann/presentations.git
$ git commit <your changes>
$ git push gitpitch
If the background images are not showing, you may need to:
add the following to /etc/nginx/sites-enabled/default
:
server {
listen 80;
server_name gitlab;
location / {
proxy_pass http://127.0.0.1:8081;
}
add to /etc/hosts
file:
127.0.0.1 gitlab
$ sudo service network-manager restart
If you encounter errors with git LFS storage such as:
LFS: client error http://gitlab/shiltemann/presentations.git/gitlab-lfs/objects/
7abe7426e3fbffd588c27d14c202cb19786cbc5ac91d40d982553dd84ada42f5/2496657 from HTTP 413
try increasing maximum request size in your nginx conf:
client_max_body_size 256M;