Last active
October 30, 2021 18:28
-
-
Save MorrisJobke/ede0c551f249b7a64e8ab38c01e8f2f8 to your computer and use it in GitHub Desktop.
Deploy stuff on dokku
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ssh [email protected] apps:create pad | |
ssh [email protected] mariadb:create pad | |
ssh [email protected] mariadb:import pad < ~/backup.sql | |
ssh [email protected] mariadb:link pad pad | |
ssh [email protected] config:set pad ETHERPAD_SETTINGS=settings.json | |
git clone [email protected]:bright-star/etherpad-lite-heroku | |
cd etherpad-lite-heroku | |
git remote add dokku [email protected]:pad | |
# adjust settings.json (set admin password) | |
git commit -sam 'add admin password' | |
git push dokku master | |
ssh [email protected] config:set --no-restart pad [email protected] | |
ssh [email protected] letsencrypt pad |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ssh [email protected] apps:create ghost | |
ssh [email protected] storage:mount ghost /var/lib/dokku/data/storage/ghost/data:/app/content/data | |
ssh [email protected] storage:mount ghost /var/lib/dokku/data/storage/ghost/images:/app/content/images | |
ssh [email protected] storage:mount ghost /var/lib/dokku/data/storage/ghost/themes/casper/post.hbs:/app/content/themes/casper/post.hbs | |
ssh [email protected] config:set --no-restart ghost [email protected] | |
ssh [email protected] config:set --no-restart ghost MAILGUN_SMTP_PASSWORD=password | |
git clone [email protected]:cobyism/ghost-on-heroku | |
cd ghost-on-heroku | |
git remote add dokku [email protected]:ghost | |
# adjust config.js | |
git commit -sam 'update config.js' | |
git push dokku master | |
ssh [email protected] config:set --no-restart ghost [email protected] | |
ssh [email protected] letsencrypt ghost |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# on server | |
docker pull aknaebel/isso | |
docker tag aknaebel/isso:latest dokku/comments:latest | |
mkdir -p /var/lib/dokku/data/storage/comments/db | |
mkdir -p /var/lib/dokku/data/storage/comments/config | |
# place config file and db file (if available) | |
chown -R dokku:dokku /var/lib/dokku/data/storage/comments | |
ssh [email protected] apps:create comments | |
ssh [email protected] storage:mount comments /var/lib/dokku/data/storage/comments/db/:/opt/issodb | |
ssh [email protected] storage:mount comments /var/lib/dokku/data/storage/comments/config/isso.conf:/opt/isso/isso.conf | |
ssh [email protected] tags:deploy comments 0.10 | |
ssh [email protected] proxy:ports-add comments http:80:8080 | |
ssh [email protected] proxy:ports-remove comments http:8080:8080 | |
ssh [email protected] config:set --no-restart comments [email protected] | |
ssh [email protected] letsencrypt comments |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment