Setting up a production instance of Toaster

From Yocto Project
Revision as of 11:54, 16 October 2015 by Michael Wood (talk | contribs)
Jump to navigationJump to search


A production instance of Toaster is one in which you wish to share the Toaster instance with multiple users. It is also the setup which can cope with heavier loads on the web service.

Requirements

  • Apache webserver
  • mod-wsgi for Apache webserver
  • Mysql database server


Ubuntu 14.04.3:

   $ sudo apt-get install apache2 libapache2-mod-wsgi mysql-server

Fedora 22:

   $ sudo dnf install 


Installation

  1. Add a config file for Toaster to your Apache webserver configuration available directory.

/etc/apache2/conf-available/toaster.conf

Alias /static /var/www/toaster/static
<Directory /var/www/toaster/static>
	Order allow,deny
	Allow from all
	Require all granted
</Directory>
WSGIDaemonProcess toaster_wsgi python-path=/var/www/toaster/toaster-next/bitbake/lib/toaster:/var/www/toaster /venv/lib/python2.7/site-packages
WSGIScriptAlias / "/var/www/toaster/poky/bitbake/lib/toaster/toastermain/wsgi.py"
<Location />
    WSGIProcessGroup toastern_wsgi
</Location>

  1. Enable the mod-wsgi in Apache webserver

  $ sudo a2enmod wsgi