2.0.1 • Published 4 years ago

hometown.in v2.0.1

Weekly downloads
-
License
MIT
Repository
bitbucket
Last release
4 years ago

HomeTown Web

Desktop

Installation

npm install

Running Dev Server

npm run dev

Building and Running Production Server

npm run build
npm run start 

Pm2 configuration

pm2 start npm --name "hometown-desktop" -i max -- start

Port Details

  • Runs production server on 8084 prot
  • Dev Server runs on 3000 prot

Nginx configuration

location / {
  proxy_pass http://127.0.0.1:8084;
  }

  location /service-worker.js {
    root {path}/static/dist/;
  }

  location ~ /dist/ {
    root {path}/static/;
  }

  # Any route containing a file extension (e.g. /devicesfile.js)
  location ~ ^.+\..+$ {
    try_files $uri =404;
  }

  location / {
    try_files $uri $uri/ /index.html;
  }