Skip to content

Instantly share code, notes, and snippets.

@borgeslucaz
Created December 3, 2019 02:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save borgeslucaz/f1df25b683eda3fc540559bf394e061e to your computer and use it in GitHub Desktop.
Save borgeslucaz/f1df25b683eda3fc540559bf394e061e to your computer and use it in GitHub Desktop.
#!/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