This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
dokku_gitlab [2018/11/02 23:31] – [Push app to dokku] admin | dokku_gitlab [2018/11/04 19:18] (current) – [Port mapping] admin | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Dokku ====== | ====== Dokku ====== | ||
+ | |||
+ | https:// | ||
+ | |||
+ | ===== Todo ===== | ||
+ | |||
+ | * Dynamic Database | ||
+ | * How to set environment vars via Repository and read it in config see https:// | ||
===== Add ssh key ===== | ===== Add ssh key ===== | ||
< | < | ||
- | cat ~/.ssh/gitlab_dokku_rsa.pub | ssh USER@DOKKU_DOMAIN | + | cat ~/.ssh/id_rsa.pub | ssh root@DOKKU_DOMAIN |
</ | </ | ||
===== Create app and database ===== | ===== Create app and database ===== | ||
- | For details see http:// | + | A base app is needed for the review app to be cloned from. |
+ | For details see http:// | ||
==== Create app ==== | ==== Create app ==== | ||
Line 30: | Line 38: | ||
git remote add dokku dokku@dokku.me: | git remote add dokku dokku@dokku.me: | ||
git push dokku master # Push master branch to remote | git push dokku master # Push master branch to remote | ||
+ | </ | ||
+ | |||
+ | ===== Handy commands ===== | ||
+ | |||
+ | ==== List apps ==== | ||
+ | |||
+ | <code bash> | ||
+ | dokku apps:report | ||
</ | </ | ||
Line 42: | Line 58: | ||
<code bash> | <code bash> | ||
dokku domains: | dokku domains: | ||
+ | </ | ||
+ | |||
+ | ==== Port mapping ==== | ||
+ | |||
+ | <code bash> | ||
+ | dokku proxy: | ||
+ | </ | ||
+ | |||
+ | |||
+ | ==== Run command on dokku server within Gitlab ==== | ||
+ | |||
+ | <code bash> | ||
+ | ssh -t dokku@$DOKKU_SERVER -- --force apps: | ||
+ | </ | ||
+ | |||
+ | |||
+ | ==== Import Database (mariadb) ==== | ||
+ | |||
+ | @see https:// | ||
+ | |||
+ | <code bash> | ||
+ | dokku mariadb: | ||
+ | </ | ||
+ | |||
+ | ==== Show/set environment variables ==== | ||
+ | |||
+ | <code bash> | ||
+ | dokku config: | ||
+ | dokku config:set composer-gitlab-update-gui FLOW_CONTEXT=Production/ | ||
</ | </ | ||
===== Configuration ===== | ===== Configuration ===== | ||
Line 48: | Line 93: | ||
* [[http:// | * [[http:// | ||
'' | '' | ||
- | * [[http:// | + | * [[http:// |
+ | * [[https:// | ||
+ | https:// | ||
+ | * Set PHP version and enable extensions in '' | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | } | ||
+ | }</ | ||
+ | * Set Nodejs, yarn, npm version in '' | ||
+ | ... | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | }, | ||
+ | ... | ||
+ | }</ | ||