docker exec -it PREFIX_discourse_1 /bin/bash
cd opt/bitnami/discourse
RAILS_ENV=production bundle exec rake plugin:install repo=PLUGIN_REPO_URL
RAILS_ENV=production bundle exec rake assets:precompile
This file contains hidden or 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
| git init | |
| git remote add origin [email protected]:USER/PROJECT.git | |
| git fetch | |
| git reset origin/master | |
| git branch --set-upstream-to=origin/master | |
| git reset --hard HEAD |
This file contains hidden or 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] "cd PROJECT_DIR; git status -s" | awk '{print $2}' | sed 's/\(.*\)/rsync -cav [email protected]:\/full\/path\/to\/PROJECT_DIR\/\1 .\/\1/' | sh |
This file contains hidden or 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-keygen # generate key, follow instructions | |
| cat ~/.ssh/id_rsa.pub # add output to bitbucket repository | |
| # test if everything went fine | |
| ssh -T [email protected] |
This file contains hidden or 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
| cat ~/.ssh/id_rsa.pub | (ssh [email protected] "cat >> ~/.ssh/authorized_keys") |
This file contains hidden or 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
Show hidden characters
| { | |
| "presets": ["es2015"], | |
| "plugins": ["transform-async-to-generator"] | |
| } |