Difference between revisions of "Imperial Dirac WebApp"

From GridPP Wiki
Jump to: navigation, search
Line 14: Line 14:
 
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 package set to /opt/dirac/sbin/Sencha/Cmd/6.5.0.180
 +
Where should Sencha Cmd be installed?
 +
/opt/dirac/sbin/Sencha/Cmd/6.5.0.18
 +
 
 
# Don't bother with "Add to path?" as that only edits .zshrc (if you accidentally hit yes, tidy up .zshrc afterwards)
 
# 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 32:
 
git checkout v4r0p11
 
git checkout v4r0p11
 
rm Lib/Compiler.py # Force new compiler (looks like this file is gone)
 
rm Lib/Compiler.py # Force new compiler (looks like this file is gone)
cd ..
+
cd /opt/dirac
 
source bashrc
 
source bashrc
# the dirac-webapp-compile.py has now wandered of in the management repo (under dirac_distribution)
+
# the dirac-webapp-compile.py has now wandered of in the management repo (under dirac_distribution):
# you also need the diraccfg repo
+
# note: we never finished debugging this, instead went back to the old version
 +
# you also need the diraccfg repo (not in v4r0)
 +
 
 
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:54, 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 package set to /opt/dirac/sbin/Sencha/Cmd/6.5.0.180
Where should Sencha Cmd be installed?
/opt/dirac/sbin/Sencha/Cmd/6.5.0.18

# 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 /opt/dirac
source bashrc
# the dirac-webapp-compile.py has now wandered of in the management repo (under dirac_distribution): 
# note: we never finished debugging this, instead went back to the old version
# you also need the diraccfg repo (not in v4r0)

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