- ENVIRONMENTAL VARIABLES
- RUNNING XTaTIK IN DEVELOPMENT MODE
- RUNNING XTaTIK IN PRODUCTION MODE
XTaTIK::Docs::04_Launch - Launching your first XTaTIK website
The launching method described below is currently experimental. It might remain function, with easier alternatives provided, or it might be removed completely.
XTaTIK uses several environmental variables to figure out what Silos to use to launch an instance of a website. They're as follows:
This variable specifies the path where your Site Silo is.
This variable specifies the path where your Company Silo is. Since this variable will be shared among your site launches, you may wish put it into your `.bashrc` or similar file, for it to be always set.
To run the core XTaTIK system, without any Company or Site Silos, simply run (#TODO: currently this won't work and will beg for the GeoIP file):
The development server will now serve on its default port.
If you'd like to see what your Company Silo looks like, simply have
XTATIK_COMPANY variable set when you launch XTaTIK:
XTATIK_COMPANY="/var/www/xtatik-company-silo" XTaTIK daemon
Lastly, to launch a site, specify both Company Silo (if you've used one) and Site Silo:
XTATIK_SITE_ROOT="/var/www/MySite/silo" \ XTATIK_COMPANY="/var/www/xtatik-company-silo" XTaTIK daemon
XTaTIK is a Mojolicious application and there are several ways to run it in production mode.
At the moment, please consult https://metacpan.org/pod/Galileo#RUNNING-THE-APPLICATION (use
XTaTIK instead of
Mojolicious's deployment guide may also be of use: http://mojolicio.us/perldoc/Mojolicious/Guides/Cookbook#DEPLOYMENT