taiko-web/docker/entrypoint.sh

9 lines
332 B
Bash
Raw Normal View History

2019-06-01 23:01:50 +08:00
#!/bin/bash
cd /taiko-web
echo "{\"songs_baseurl\":\"$TAIKO_URL/songs/\",\"assets_baseurl\":\"$TAIKO_URL/assets/\"}" | tee ./config.json
echo "{\"commit\":\"$(git log --pretty=%H -1)\",\"commit_short\":\"$(git log --pretty=%h -1)\",\"version\": \"$TAIKO_VERSION\"}" | tee ./version.json
pm2-docker start ./docker/pm2-docker.json