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 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 git@bitbucket.org:USER/PROJECT.git | |
git fetch | |
git reset origin/master | |
git branch --set-upstream-to=origin/master | |
git reset --hard HEAD |
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 user@server.com "cd PROJECT_DIR; git status -s" | awk '{print $2}' | sed 's/\(.*\)/rsync -cav user@server.com:\/full\/path\/to\/PROJECT_DIR\/\1 .\/\1/' | sh |
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-keygen # generate key, follow instructions | |
cat ~/.ssh/id_rsa.pub # add output to bitbucket repository | |
# test if everything went fine | |
ssh -T git@bitbucket.org |
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
cat ~/.ssh/id_rsa.pub | (ssh user@server.com "cat >> ~/.ssh/authorized_keys") |
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
Show hidden characters
{ | |
"presets": ["es2015"], | |
"plugins": ["transform-async-to-generator"] | |
} |