Created
December 3, 2019 02:21
-
-
Save borgeslucaz/f1df25b683eda3fc540559bf394e061e 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/sh | |
APP_URL="abcdef.com.br" | |
ROOT_PATH="/srv/${APP_URL}/www/" | |
RELEASES="${ROOT_PATH}/releases" | |
CURRENT="${ROOT_PATH}/current" | |
GIT="https://github.com/borgeslucaz/modern-go-application.git" | |
NEW_RELEASE=$(date +%s) | |
# Create new release | |
mkdir -p $ROOT_PATH/releases/$NEW_RELEASE | |
#ls -1tr | head -n -10 | xargs -d '\n' rm -f -- |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment