An automatic setup and configuration script has been provided for use on Debian/Ubuntu systems. Other systems that do not use systemctl and the aptitude package manager are not supported.
The script requires execution privileges, enable them by running sudo chmod +x setup.sh
.
Run the script as root sudo ./setup.sh
and wait for it to complete.
The eula-aat directory must be in a location accessible by your service workers. A recommended location is /usr/share
.
After ensuring that your directory is accessible, run the configuration script as root sudo ./configure.sh
and choose the following options:
Note: Pressing enter without choosing an option automatically selects the option in [brackets]
nginx config location [/etc/nginx]:
name for nginx config file [nginx.conf]:
directory for www directory [/var/www]:
directory for log directory [/var/log]:
number of nginx worker processes:
16number of processing threads for a request:
4key for google APIs:
your api keyuwsgi configuration location [/etc/uwsgi/apps-enabled]:
number of uwsgi worker processes:
8uid of service user [root]:
www-datagid of service usergroup [root]:
www-datadirectory of project accessible by your service worker:
/usr/share/eula-aatSet nginx to run on start? [y/N]?
ySet uwsgi to run on start [y/N]?
ySet mongod to run on start? [y/N]?
c
Build the front-end by navigating to the app
directory and running the following, in order:
node --max-old-space-size=512 /usr/bin/npm --unsafe-perm install
./node_modules/ember-cli/bin/ember build
Reboot the system, and the program should be ready to serve requests on port 80.