Created
August 15, 2017 08:20
-
-
Save lindwurm/ff83886b0d8341992f57d31bd08dda10 to your computer and use it in GitHub Desktop.
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
#!/bin/bash | |
COMMITHASH=$(git ls-remote https://github.com/lindwurm/mastodon.git HEAD | head -c 7) | |
cd live | |
echo "[${COMMITHASH}] へいますたー" | toot | |
git pull | |
echo "[${COMMITHASH}] びるど!" | toot | |
docker-compose build | |
docker-compose run --rm web rails db:migrate | |
echo "[${COMMITHASH}] ぷりこんぱいる?" | toot | |
docker-compose run --rm web rails assets:precompile | |
echo "[${COMMITHASH}] でっぷろーい" | toot | |
docker-compose up -d | |
echo "[${COMMITHASH}] だん!" | toot |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment