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:
XTATIK_SITE_ROOT="/var/www/MySite/silo"
This variable specifies the path where your Site Silo is.
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.
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
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 galileo).
galileo
Mojolicious's deployment guide may also be of use: http://mojolicio.us/perldoc/Mojolicious/Guides/Cookbook#DEPLOYMENT
To install XTaTIK, copy and paste the appropriate command in to your terminal.
cpanm
cpanm XTaTIK
CPAN shell
perl -MCPAN -e shell install XTaTIK
For more information on module installation, please visit the detailed CPAN module installation guide.