Difference between revisions of "Imperial Dirac WebApp"

From GridPP Wiki
Jump to: navigation, search
(Simon's infamous WebApp email)
 
Line 11: Line 11:
 
mkdir sbin
 
mkdir sbin
 
cd sbin
 
cd sbin
wget
+
wget http://cdn.sencha.com/cmd/6.5.0/no-jre/SenchaCmd-6.5.0-linux-amd64.sh.zip
http://cdn.sencha.com/cmd/6.5.0/no-jre/SenchaCmd-6.5.0-linux-amd64.sh.zip
+
 
unzip SenchaCmd-6.5.0-linux-amd64.sh.zip
 
unzip SenchaCmd-6.5.0-linux-amd64.sh.zip
 
./SenchaCmd-6.5.0.180-linux-amd64.sh
 
./SenchaCmd-6.5.0.180-linux-amd64.sh
 
# Install default pacakge set to /opt/dirac/sbin/Sencha/Cmd/6.5.0.180
 
# Install default pacakge set to /opt/dirac/sbin/Sencha/Cmd/6.5.0.180
# Don't bother with "Add to path?" as that only edits .zshrc
+
# Don't bother with "Add to path?" as that only edits .zshrc (if you accidentally hit yes, tidy up .zshrc afterwards)
 
export PATH=$PATH:/opt/dirac/sbin/Sencha/Cmd
 
export PATH=$PATH:/opt/dirac/sbin/Sencha/Cmd
  
Line 28: Line 27:
 
git clone https://github.com/DIRACGrid/WebAppDIRAC.git
 
git clone https://github.com/DIRACGrid/WebAppDIRAC.git
 
git checkout v4r0p11
 
git checkout v4r0p11
rm Lib/Compiler.py # Force new compiler
+
rm Lib/Compiler.py # Force new compiler (looks like this file is gone)
 
cd ..
 
cd ..
 
source bashrc
 
source bashrc
 +
# the dirac-webapp-compile.py has now wandered of in the management repo (under dirac_distribution)
 +
# you also need the diraccfg repo
 
python WebAppDIRAC/scripts/dirac-webapp-compile.py -n WebAppDIRAC -P /opt/dirac/extjs/ext-6.2.0/packages
 
python WebAppDIRAC/scripts/dirac-webapp-compile.py -n WebAppDIRAC -P /opt/dirac/extjs/ext-6.2.0/packages
 
# Second bit not actually installed on production service yet
 
# Second bit not actually installed on production service yet
 
python WebAppDIRAC/scripts/dirac-webapp-compile.py -n VMDIRAC -P /opt/dirac/extjs/ext-6.2.0/packages
 
python WebAppDIRAC/scripts/dirac-webapp-compile.py -n VMDIRAC -P /opt/dirac/extjs/ext-6.2.0/packages
 
</pre>
 
</pre>

Revision as of 09:21, 1 May 2020

# Working out versions
# extjs version can be seen in bundled release version
# (http://diracproject.web.cern.ch/diracproject/tars/WebAppDIRAC-v4r0p11.tar.gz)
# Look at top of WebApp/static/extjs/ext-all.js file to extract this
#
# SenchaCmd needs to be same major version as extjs, minor version can be
# higher

su - dirac
mkdir sbin
cd sbin
wget http://cdn.sencha.com/cmd/6.5.0/no-jre/SenchaCmd-6.5.0-linux-amd64.sh.zip
unzip SenchaCmd-6.5.0-linux-amd64.sh.zip
./SenchaCmd-6.5.0.180-linux-amd64.sh
# Install default pacakge set to /opt/dirac/sbin/Sencha/Cmd/6.5.0.180
# Don't bother with "Add to path?" as that only edits .zshrc (if you accidentally hit yes, tidy up .zshrc afterwards)
export PATH=$PATH:/opt/dirac/sbin/Sencha/Cmd

cd ~
mkdir extjs
cd extjs
wget http://cdn.sencha.com/ext/gpl/ext-6.2.0-gpl.zip
unzip ext-6.2.0-gpl.zip

cd ~
git clone https://github.com/DIRACGrid/WebAppDIRAC.git
git checkout v4r0p11
rm Lib/Compiler.py # Force new compiler (looks like this file is gone)
cd ..
source bashrc
# the dirac-webapp-compile.py has now wandered of in the management repo (under dirac_distribution)
# you also need the diraccfg repo
python WebAppDIRAC/scripts/dirac-webapp-compile.py -n WebAppDIRAC -P /opt/dirac/extjs/ext-6.2.0/packages
# Second bit not actually installed on production service yet
python WebAppDIRAC/scripts/dirac-webapp-compile.py -n VMDIRAC -P /opt/dirac/extjs/ext-6.2.0/packages