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
20 lines
596 B
7 years ago
|
# 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`
|
||
6 years ago
|
- unzip the project: `unzip ~/web-ui.zip -d ~/`
|
||
7 years ago
|
- move the files: `sudo rsync -a ~/dist/ /var/www/html/ --remove-source-files`
|