User Tools

Site Tools


dokku_gitlab

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
dokku_gitlab [2018/11/04 15:10] – [Import Database (mariadb)] admindokku_gitlab [2018/11/04 20:18] (current) – [Port mapping] admin
Line 2: Line 2:
  
 https://www.youtube.com/watch?v=O6p7g59Ccj8 https://www.youtube.com/watch?v=O6p7g59Ccj8
 +
 +===== Todo =====
 +
 +  * Dynamic Database
 +  * How to set environment vars via Repository and read it in config see https://flowframework.readthedocs.io/en/stable/TheDefinitiveGuide/PartIII/Configuration.html
  
 ===== Add ssh key ===== ===== Add ssh key =====
Line 60: Line 65:
 dokku proxy:report dokku proxy:report
 </code> </code>
 +
 +
 +==== Run command on dokku server within Gitlab ====
 +
 +<code bash>
 +ssh -t dokku@$DOKKU_SERVER -- --force apps:destroy "$APP_NAME"
 +</code>
 +
  
 ==== Import Database (mariadb) ==== ==== Import Database (mariadb) ====
Line 69: Line 82:
 </code> </code>
  
-==== Show environment variables ====+==== Show/set environment variables ====
  
 <code bash> <code bash>
 dokku config:export --format shell composer-gitlab-update-gui dokku config:export --format shell composer-gitlab-update-gui
 +dokku config:set composer-gitlab-update-gui FLOW_CONTEXT=Production/Dokku
 </code> </code>
 ===== Configuration ===== ===== Configuration =====
Line 88: Line 102:
       "ext-xsl": "*"       "ext-xsl": "*"
     }     }
 +}</code>
 +  * Set Nodejs, yarn, npm version in ''package.json'': <code json>{
 +...
 +  "engines": {
 +    "node": "10.12.0",
 +    "yarn": "1.12.1",
 +    "npm": "6.4.1"
 +  },
 +...
 }</code> }</code>
  
dokku_gitlab.1541340641.txt.gz · Last modified: 2018/11/04 15:10 by admin