Skip to content

torneseumprogramador/app-react-build-deploy-rust

Repository files navigation

Como fiz o deploy

  • Configurar servidor
# instalando libs
sudo apt update
sudo apt upgrade
sudo apt install nginx
cd /var/www/html
sudo mv html/ html_antigo
git clone https://github.com/torneseumprogramador/app-react-build-deploy-rust.git html
  • Alterar nginx para 404 enviar para index.html
server {
    listen 80 default_server;
    listen [::]:80 default_server;

    root /var/www/html;

    index index.html index.htm index.nginx-debian.html;

    server_name _;

    location / {
            try_files $uri $uri/ /index.html;
    }
}
sudo vim /etc/nginx/sites-available/default # coloque o nginx configurado aqui
sudo systemctl restart nginx

OBS: não esqueça de librar a porta 80 no security group AWS

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages