NAME
XTaTIK::Docs::04_Launch - Launching your first XTaTIK website
WARNING
The launching method described below is currently experimental. It might remain function, with easier alternatives provided, or it might be removed completely.
ENVIRONMENTAL VARIABLES
XTaTIK uses several environmental variables to figure out what Silos to use to launch an instance of a website. They're as follows:
XTATIK_SITE_ROOT
XTATIK_SITE_ROOT="/var/www/MySite/silo"
This variable specifies the path where your Site Silo is.
XTATIK_COMPANY
XTATIK_COMPANY="/var/www/xtatik-company-silo"
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.
RUNNING XTaTIK IN DEVELOPMENT MODE
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):
XTaTIK
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
RUNNING XTaTIK IN PRODUCTION MODE
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 galileo
).
Mojolicious's deployment guide may also be of use: http://mojolicio.us/perldoc/Mojolicious/Guides/Cookbook#DEPLOYMENT