deploy-on-web-nginx
Run Nginx
To enable cezerin apps from browser, we need to setup web server.
We need to proxy all requests from web to our cezerin apps.
All requests from domain.com proxy to localhost:3000 (running cezerin frontend app)
All requests from domain.com/api, domain.com/ajax, domain.com/images proxy to localhost:3001 (running cezerin backend app)
We have cezerin nginx config, so you can use this config for web deploy (just remove default config settings and replace with cezerin config settings).
P.S. Change /var/www/cezerin2/ in nginx config to your path if you download cezerin to another folder.
We need to add a new website to Nginx.
Change Nginx config file
cd /etc/nginx/sites-available
open
default
file and paste this configReload Nginx configuration
nginx -t && service nginx reload