Skip to content

Instantly share code, notes, and snippets.

View DenisRebenok's full-sized avatar
🤓
👋

Den Rebenok DenisRebenok

🤓
👋
View GitHub Profile

Keybase proof

I hereby claim:

  • I am denisrebenok on github.
  • I am den_rebenok_21 (https://keybase.io/den_rebenok_21) on keybase.
  • I have a public key ASBPCytLFGFXn70syEH_r6ZftLPKWoZbmw9b_YkVw-UgGAo

To claim this, I am signing this object:

@DenisRebenok
DenisRebenok / node_nginx_ssl.md
Created November 20, 2019 18:17 — forked from bradtraversy/node_nginx_ssl.md
Node app deploy with nginx & SSL

Node.js Deployment

Steps to deploy a Node.js app to DigitalOcean using PM2, NGINX as a reverse proxy and an SSL from LetsEncrypt

1. Sign up for Digital Ocean

If you use the referal link below, you get $10 free (1 or 2 months) https://m.do.co/c/5424d440c63a

2. Create a droplet and log in via ssh

I will be using the root user, but would suggest creating a new user

References: https://gist.github.com/noelboss/3fe13927025b89757f8fb12e9066f2fa
More info: https://www.digitalocean.com/community/tutorials/how-to-use-git-hooks-to-automate-development-and-deployment-tasks
https://www.youtube.com/watch?v=6mYtJu0E47U
[misc commands deluser newuser]
The following steps is for Developers to push their code from their local machine, to their server with git, and let git auto
pull the update to your remote folder. How it works:
- From your local machine, you do your normal coding. When done, you push your new code to git
- Git then updates your local machine, and push it to your server's git
- Git on your server gets the new update, and push it to your server's working folder
@DenisRebenok
DenisRebenok / hello.rb
Created June 29, 2015 22:52
hello world
puts "Hello World!"