- Configurar chave SSH
- Criar Droplet
- Realizar update e upgrade
- Crua usuário
adduser deployeusermod -aG sudo deploy - Cria pasta
.sshprodeploy cp ~/.ssh/authorized_keys /home/deploy/.ssh/authorized_keyschown -R deploy:deploy .ssh/chmod 700 .ssh
This file contains hidden or 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
| version: "3.9" | |
| services: | |
| database: | |
| image: postgres | |
| container_name: database_prismaio | |
| restart: always | |
| ports: | |
| - 5434:5432 | |
| environment: |
This file contains hidden or 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
| Fluxo de Trabalho no Git | |
| ======================== | |
| Primeiro crie um branch de desenvolvimento no seu repositório local: | |
| $ git checkout --track origin/development | |
| 1. Trabalhe em sua tarefa, continuamente comitando em intervalos regulares para manter | |
| o rastro daquilo que você fez. |
This file contains hidden or 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
| module.exports = { | |
| env: { | |
| browser: true, | |
| es6: true, | |
| jest: true, | |
| }, | |
| extends: [ | |
| 'react-app', | |
| 'airbnb', | |
| 'plugin:@typescript-eslint/recommended', |
Here are the simple steps needed to create a deployment from your local GIT repository to a server based on this in-depth tutorial.
You are developing in a working-copy on your local machine, lets say on the master branch. Most of the time, people would push code to a remote server like github.com or gitlab.com and pull or export it to a production server. Or you use a service like deepl.io to act upon a Web-Hook that's triggered that service.
This gist assumes:
- you have an online remote repository (github / bitbucket etc.)
- you have a local git repo
- and a cloud server (Rackspace cloud / Amazon EC2 etc)
- your (PHP) scripts are served from /var/www/html/
- your webpages are executed by Apache
- the Apache user is named
www-data(may beapacheon other systems)
This file contains hidden or 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
| [user] | |
| name = Jeremy Helms | |
| email = digitaljhelms@gmail.com | |
| [alias] | |
| aliases = !git config --get-regexp 'alias.*' | colrm 1 6 | sed 's/[ ]/ = /' | sort # list all aliases | |
| cb = !git branch | grep ^* | cut -d' ' -f2 | |
| branch-name = !git cb # alias to "cb" alias | |
| st = status | |
| ci = commit | |
| cie = commit --allow-empty-message -m '' |
