Yann Weber 93bd1e138a Initial commit | 3 лет назад | |
---|---|---|
public | 3 лет назад | |
src | 3 лет назад | |
.gitignore | 3 лет назад | |
README.md | 3 лет назад | |
config.json | 3 лет назад | |
package.json | 3 лет назад | |
tsconfig.json | 3 лет назад |
Install dependencies
npm install
Change the WS_URL
value according to server deployment configuration.
edit src/config.json
Create an optimized production build
npm run build
Copy ./build
to webserver’s (/var/www/clock
).
Install nginx
apt install nginx
Create server configuration
rm /etc/nginx/site-enabled/default
edit /etc/nginx/sites-available/clock
ln -s /etc/nginx/sites-available/clock /etc/nginx/sites-enabled/
Example server config :
server {
listen 80 default_server;
listen [::]:80 default_server;
root /var/www/clock/;
index index.html;
server_name _;
location / {
try_files $uri $uri/ =404;
}
}
npm run start