Difference between revisions of "Deploying node, react apps to ionos cloud"

From Logic Wiki
Jump to: navigation, search
Line 6: Line 6:
  
 
== Plan ==
 
== Plan ==
 +
* install node / npm
 
* install nginx to cloud
 
* install nginx to cloud
 
* create site in nginx
 
* create site in nginx
Line 18: Line 19:
  
 
== Action ==
 
== Action ==
 +
=== Installing node / npm ===
 +
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh | bash
 +
restart the terminal and to install
 +
nvm install 22
 +
=== Install Nginx ===
 +
sudo apt update
 +
sudo apt install nginx
 +
 +
sudo systemctl start nginx
 +
=== Create a site in Nginx ===
  
=== Install nginx ===
 
  
 
=== Install let's encrypt ===
 
=== Install let's encrypt ===
 
[https://www.digitalocean.com/community/tutorials/how-to-secure-nginx-with-let-s-encrypt-on-ubuntu-20-04 https://www.digitalocean.com/community/tutorials/how-to-secure-nginx-with-let-s-encrypt-on-ubuntu-20-04]
 
[https://www.digitalocean.com/community/tutorials/how-to-secure-nginx-with-let-s-encrypt-on-ubuntu-20-04 https://www.digitalocean.com/community/tutorials/how-to-secure-nginx-with-let-s-encrypt-on-ubuntu-20-04]

Revision as of 21:32, 9 May 2024


Plan

  • install node / npm
  • install nginx to cloud
  • create site in nginx
  • manually deploy typescript node app after build
  • install let's encrypt
  • Test node app in SSL
  • Create github action to deploy site from main branch
  • Create github action to deploy site to Azure WebApps from develop branch
  • Decide where to keep database
  • test deployment end to end
  • repat steps for the react app

Action

Installing node / npm

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh | bash

restart the terminal and to install

nvm install 22

Install Nginx

sudo apt update
sudo apt install nginx
sudo systemctl start nginx

Create a site in Nginx

Install let's encrypt

https://www.digitalocean.com/community/tutorials/how-to-secure-nginx-with-let-s-encrypt-on-ubuntu-20-04