RSS Git Download  Clone
Raw Blame History
* symlink: deployment.yml -> production.yml
* apache config:
	ProxyRequests Off
	<Proxy *>
		Order deny,allow
		Allow from all
	</Proxy>
    ProxyPass        /outreach-demo http://localhost:3001/outreach-demo
    ProxyPassReverse /outreach-demo http://localhost:3001/outreach-demo
	# requires a2enmod headers:
	RequestHeader set X_FORWARDED_PROTO "https"
	
* /logs dir chown raj:www-data, chmod 2770

for production: init.d/outreach-demo -> bin/app.pl

for testing under production env, run either:
* carton exec starman -p <not 3001> bin/app.psgi
* PERL5LIB=./local/lib/perl5 plackup -p <not 3001> bin/app.psgi