git add .
git commit -m 'Mensaje de commit'
git push
# dependencies
/node_modules
# testing
/coverage
/.out
# production
/build
/dist
**/*.css
# misc
.DS_Store
.env
npm-debug.log*
yarn-debug.log*
yarn-error.log*
.gitignore
Cuando el <3 lo quiera
https://github.com/nvie/gitflow
Master
Versión estable de la app que está en producción
Develop
La última versión de la aplicación
Features
Todas las funcionalidades en las que se están trabajando
Releases
Versión estable de la app a la que se hará QA
Hotfixes
Arreglos de último minuto sobre producción
https://danielkummer.github.io/git-flow-cheatsheet/
# This is a sample build configuration for PHP.
# Check our guides at https://confluence.atlassian.com/x/e8YWN for more examples.
# Only use spaces to indent your .yml configuration.
# -----
# You can specify a custom docker image from Docker Hub as your build environment.
image: node:8.9.1
pipelines:
branches:
master:
- step:
deployment: production
script:
- echo $MY_SSH_KEY > /root/.ssh/id_rsa.pub
- curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version 0.18.1
- export PATH=$HOME/.yarn/bin:$PATH
- yarn
- yarn build
- scp -r build root@159.65.230.100:/var/www/html
- scp deploy.sh root@159.65.230.100:/var/www/html
- ssh -T root@159.65.230.100 "cd /var/www/html; chmod +x ./deploy.sh; ./deploy.sh"
develop:
- step:
caches:
- node
deployment: staging
script:
- echo $MY_SSH_KEY > /root/.ssh/id_rsa.pub
- curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version 0.18.1
- export PATH=$HOME/.yarn/bin:$PATH
- yarn
- yarn build
- scp -r build root@159.65.230.109:/var/www/html
- scp deploy.sh root@159.65.230.109:/var/www/html
- ssh -T root@159.65.230.109 "cd /var/www/html; chmod +x ./deploy.sh; ./deploy.sh"
/bitbucket-pipelines.yml