Skip to content

Instantly share code, notes, and snippets.

@anmolsukki
Created May 4, 2020 16:27
Show Gist options
  • Select an option

  • Save anmolsukki/f127b8b819740ac926fd71c73bbb6111 to your computer and use it in GitHub Desktop.

Select an option

Save anmolsukki/f127b8b819740ac926fd71c73bbb6111 to your computer and use it in GitHub Desktop.
Deploy Build On Server

Deploy Build on Server

  1. Server Username run in terminal.

  2. Password.

sudo apt-get update

sudo apt-get install nginx

sudo ufw app list

sudo ufw allow ‘Nginx HTTP’

systemctl status nginx

mkdir /etc/systemd/system/nginx.service.d

printf "[Service]\nExecStartPost=/bin/sleep 0.1\n" > /etc/systemd/system/nginx.service.d/override.conf

systemctl daemon-reload

systemctl restart nginx

then

  1. open fileZilla application and fill Host, Port:22, User, Password then connect.

after that go to remote site and select var >>> www >>> html.

then drag and drop all build file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment