Skip to content

Instantly share code, notes, and snippets.

@luizcarraro
Last active January 23, 2019 13:27
Show Gist options
  • Save luizcarraro/5c3910f8da76ea15fcd91107af063067 to your computer and use it in GitHub Desktop.
Save luizcarraro/5c3910f8da76ea15fcd91107af063067 to your computer and use it in GitHub Desktop.
my personal Rc file
alias reload='pm2 reload ${PWD##*/} && pm2 logs ${PWD##*/}'
alias pull='git pull'
alias dev='git checkout dev'
alias master='git checkout master'
alias rc='git checkout rc'
alias stage='git checkout dev && git pull origin dev && git checkout rc && git pull origin rc && git merge dev --no-ff && git push origin rc && git checkout dev && git merge rc && git push origin dev && git checkout rc && echo -e "\n Ok! \n\nPronto para gerar uma nova versão."'
alias deploy='~/luizutils/deploy.sh'
alias build='emberBuild'
emberBuild() {
if [[ $1 && $1 = "p" ]]; then
echo "BUILDING PRODUCTION"
npm run build-production
else
echo "BUILDING STAGING"
npm run build-staging
fi
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment