You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
596 B

# Deploy the web-ui project
## Requisites
- nginx working (see [setup-nginx.md](/infra/misc/setup-nginx.md))
## Build the project
These steps should be run in a place where you have cloned the repository, like your local machine:
- move to the [web-ui](/web-ui) folder: `cd web-ui`
- build the project: `ng build --prod`
- zip the result: `zip -r web-ui.zip dist/*`
- copy to the server: `scp web-ui.zip xsnexplorer.io:~/`
## Server
- login. `ssh xsnexplorer.io`
- unzip the project: `unzip ~/web-ui.zip -d ~/`
- move the files: `sudo rsync -a ~/dist/ /var/www/html/ --remove-source-files`