XTaTIK/Docs/04_Launch.pm

filter: Statementstmt 100% 8 / 8 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 2 / 2 Podpod n/a totaltotal 100% 10 / 10 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« XTaTIK/Docs/03_PreparingSiteSilo.pm ↑ Summary XTaTIK/Docs/Appendix/SASSVariables.pm »
1 package XTaTIK::Docs::04_Launch;
2  
3 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 1 our $VERSION = '0.004001'; # VERSION
7  
8 1 1;
9 __END__
10  
11 =encoding utf8
12  
13 =for stopwords GeoIP Mojolicious
14  
15 =head1 NAME
16  
17 XTaTIK::Docs::04_Launch - Launching your first XTaTIK website
18  
19 =head1 WARNING
20  
21 =for html <div style="display: table; height: 91px; background: url(http://zoffix.com/CPAN/Dist-Zilla-Plugin-Pod-Spiffy/icons/section-warning.png) no-repeat left; padding-left: 120px;" ><div style="display: table-cell; vertical-align: middle;">
22  
23 The launching method described below is currently experimental.
24 It might remain function, with easier alternatives provided, or it might
25 be removed completely.
26  
27 =for html </div></div>
28  
29 =head1 ENVIRONMENTAL VARIABLES
30  
31 XTaTIK uses several environmental variables to figure out what
32 Silos to use to launch an instance of a website. They're as follows:
33  
34 =head2 XTATIK_SITE_ROOT
35  
36 XTATIK_SITE_ROOT="/var/www/MySite/silo"
37  
38 This variable specifies the path where your Site Silo is.
39  
40 =head2 XTATIK_COMPANY
41  
42 XTATIK_COMPANY="/var/www/xtatik-company-silo"
43  
44 This variable specifies the path where your Company Silo is. Since this
45 variable will be shared among your site launches, you may wish put it
46 into your `.bashrc` or similar file, for it to be always set.
47  
48 =head1 RUNNING XTaTIK IN DEVELOPMENT MODE
49  
50 To run the core XTaTIK system, without any Company or Site Silos, simply
51 run I<(#TODO: currently this won't work and will beg for the GeoIP file)>:
52  
53 XTaTIK
54  
55 The development server will now serve on its default port.
56  
57 If you'd like to see what your Company Silo looks like, simply have
58 C<XTATIK_COMPANY> variable set when you launch XTaTIK:
59  
60 XTATIK_COMPANY="/var/www/xtatik-company-silo" XTaTIK daemon
61  
62 Lastly, to launch a site, specify both Company Silo (if you've used one)
63 and Site Silo:
64  
65 XTATIK_SITE_ROOT="/var/www/MySite/silo" \
66 XTATIK_COMPANY="/var/www/xtatik-company-silo" XTaTIK daemon
67  
68 =head1 RUNNING XTaTIK IN PRODUCTION MODE
69  
70 XTaTIK is a L<Mojolicious> application and there are several ways
71 to run it in production mode.
72  
73 At the moment, please consult
74 L<https://metacpan.org/pod/Galileo#RUNNING-THE-APPLICATION>
75 (use C<XTaTIK> instead of C<galileo>).
76  
77 Mojolicious's deployment guide may also be of use:
78 L<http://mojolicio.us/perldoc/Mojolicious/Guides/Cookbook#DEPLOYMENT>
79  
80 =cut
« XTaTIK/Docs/03_PreparingSiteSilo.pm ↑ Summary XTaTIK/Docs/Appendix/SASSVariables.pm »