This project was generated with Angular CLI version 8.3.14.
Run ng serve
for a dev server. Navigate to http://localhost:4200/
. The app will automatically reload if you change any of the source files.
Run ng generate component component-name
to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module
.
Run ng build
to build the project. The build artifacts will be stored in the dist/
directory. Use the --prod
flag for a production build.
Run ng test
to execute the unit tests via Karma.
Run ng e2e
to execute the end-to-end tests via Protractor.
To get more help on the Angular CLI use ng help
or go check out the Angular CLI README.
#Description=Campus UPR NodeJS Application
After=network-online.target
[Service]
Restart=always
Environment=PORT=5000
WorkingDirectory=/home/campus/platform/
ExecStart=~/.nvm/versions/node/v12.13.0/bin/node ./dist/server.js
[Install]
WantedBy=multi-user.target
-
sudo apt-get install nginx
-
sudo nano /etc/nginx/sites-available/campus.upr.edu.cu upstream campus.upr.edu.cu {
server 127.0.0.1:4000; }
server {
listen 0.0.0.0:80;
server_name campus.upr.edu.cu;
access_log /var/log/nginx/campus.upr.edu.cu.access.log;
error_log /var/log/nginx/campus.upr.edu.cu.error.log debug;
location / { proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarder-For $proxy_add_x_forwarded_for; proxy_set_header Host $http_host; proxy_set_header X-NginX-Proxy true;
proxy_pass http://campus.upr.edu.cu;
proxy_redirect off;
} }
-
sudo ln -s /etc/nginx/sites-available/campus.upr.edu.cu /etc/nginx/sites-enabled/campus.upr.edu.cu
-
systemctl restart nginx.service