- Modificado (modified);
- Preparado (staged/index)
- Consolidado (comitted);
Primeiramente, devemos gerar um novo par de chaves usando o comando ssh-keygen: | |
ssh-keygen -t rsa -b 4096 -C "seu-email@seu-servidor.com" | |
O comando irá perguntar em qual arquivo você deseja salvar sua chave. Se você não tem nenhuma chave configurada, não tem problema usar o nome padrão (id_rsa). Em seguida, ele perguntará se você deseja usar uma senha que será perguntada toda vez que você fizer uma autenticação baseada nas suas chaves. Recomendo configurar uma senha se você compartilha seu computador com outras pessoas. | |
Enter passphrase (empty for no passphrase): [digite sua senha] | |
Enter same passphrase again: [digite sua senha novamente] | |
Finalmente, sua chave será salva na pasta ~/.ssh: |
# Docker - Comandos Úteis | |
## Containers | |
- Abrir um shell em um container em execução: | |
- `docker exec -t -i <container_id> <shell>` | |
## Limpeza | |
- Excluir containers com status equivalente a Exited: |
Inicie o servidor Docker Desktop
Laravel 8+, Horizon 5.x, Redis 6+
Parepare application
- Install and configure Laravel Horizon as instructed in docs
- Make sure you can access the Horizon dashboard like -
http://yourapp.com/horizon
- For now it should show status as
inactive
on dashbaord
Install redis-server
# Terminal Tab #1 (with privileges inside container) | |
# ============= | |
cd "/the/dir/you/want/to/work/with/php8" | |
docker run --name php8 \ | |
-it \ | |
-v $PWD:/var/php:rw \ | |
php:8.0-cli-alpine3.12 \ | |
ash | |
cd /tmp |
Steps to deploy a Node.js app to Digital Ocean using PM2, NGINX as a reverse proxy and an SSL from LetsEncrypt
If you use the referal link below, you get $10 free (1 or 2 months) https://m.do.co/c/5424d440c63a
I will be using the root user, but would suggest creating a new user
Here are the simple steps needed to create a deployment from your lokal 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 my Deepl.io to act upon a Web-Hook that's triggered that service.