Machine/aslo-web: Difference between revisions

move crontab to db node page
 
(9 intermediate revisions by 3 users not shown)
Line 1: Line 1:
==Set up==
== Hostnames ==
Below is the recipe that we used to set up the php server. Please see puppet for up to date configuration details.
 
* http://aslo-web.sugarlabs.org (host not found --[[User:Quozl|Quozl]] ([[User talk:Quozl|talk]]) 03:11, 9 August 2018 (EDT))
 
== Hardware ==
 
* KVM VM
 
== Location ==
 
[[Machine/housetree|Housetree]]
 
== Admins ==
 
* [[User:alsroot|Aleksey Lim]]
 
== Backups ==
 
<!--* Daily system-full-backup to [[Machine/backup]]. Ask admins for encryption password.
* Daily system-remote-backup to [[Machine/backup]]. Encrypted with keys of bernie and dfarning.-->
 
== Setup ==


===Install required php modules===
===Install required php modules===
Line 17: Line 37:
  sudo -i -u activities
  sudo -i -u activities


===Set up NFS mount points===


===Set up NFS mount points===
Create directories
Create directories
  mkdir -p ~/files
  mkdir -p ~/files
Line 28: Line 48:
  sunjammer.sugarlabs.org:/srv/nfs/activities/staging /srv/activities/staging nfs rsize=8192,wsize=8192,timeo=14,intr
  sunjammer.sugarlabs.org:/srv/nfs/activities/staging /srv/activities/staging nfs rsize=8192,wsize=8192,timeo=14,intr


===First-time ASLO setup===
===Clone ASLO repository===
 
git clone git://git.sugarlabs.org/slo-activities/mainline.git -b production .
 
===Checkout dependencies===
 
cd ~/site/vendors/
svn co http://svn.mozilla.org/libs/product-details
svn co http://svn.mozilla.org/libs/fizzypop.mozdev fizzypop
svn co http://svn.mozilla.org/libs/phorms
svn co http://svn.mozilla.org/libs/zxtm-api
 
==ASLO configuration==


Using ''~/aslo/config.php'' as template, setup ASLO settings in file ''~/site/app/config/config.php''. Template file was configured for ''dev'' environment, switch it to production by  setting ''SITE_STATE'' variable to ''production''.
Using ''~/aslo/config.php'' as template, setup ASLO settings in file ''~/site/app/config/config.php''. Template file was configured for ''dev'' environment, switch it to production by  setting ''SITE_STATE'' variable to ''production''.
Line 36: Line 68:
  define('DEV', false);
  define('DEV', false);
  define('QUERY_CACHE', true);
  define('QUERY_CACHE', true);
All local configuration should happen in files
~/site/app/config/config.php
~/site/app/config/config-local.php
==Update ASLO repository==
git pull origin production