Skip to content

Instantly share code, notes, and snippets.

@hoangmirs
hoangmirs / deploy-pm2.md
Last active March 24, 2024 22:01
Deploy pm2 guide

1. Preparing the server

Install git

sudo apt install git-all

Generate Server's SSH public key

ssh-keygen -t rsa -b 4096 -C "deploy"
cat ~/.ssh/id_rsa.pub
@cooperka
cooperka / 01_install_yarn.config
Created June 18, 2018 23:50
AWS Elastic Beanstalk - Replace npm with yarn
# .ebextensions/01_install_yarn.config
files:
'/opt/elasticbeanstalk/hooks/appdeploy/pre/49install_yarn.sh' :
mode: '000755'
owner: root
group: root
content: |
#!/usr/bin/env bash
set -euxo pipefail
FORMAT: 1A
# Data Structures
## Café GET (object)
+ id: `1` (number, required) - Identificador
+ created: `2017-10-11` (string, required) - Data de preparo
+ tipo_preparo (enum, required)
+ 0 (number) - Café com Leite