-
Notifications
You must be signed in to change notification settings - Fork 35
Download iSkyLIMS
So far all the files and directories have been created with root.
To avoid permission issues when executing iSkyLIMS we need to change the owner of files to django user.
cd /srv
mkdir iSkyLIMS
chown django:bioinfo iSkyLIMS/
chmod 775 iSkyLIMS/
exit
NOTE: iSkyLIMS needs to execute schedule jobs using crontab.
For security reason, it is not recommended to use apache user to execute the schedule job. Instead, django user will be used to execute the user crontab.
The actions done on crontab requires to have a write access under the iSkyLIMs directory to save run files. For that reason iSyLIMS directory must have write granted for django user to save the necessary files.
cd iSkyLIMS/
#clone the repository and init the submodules.
#clone repository
git clone https://github.com/BU-ISCIII/iSkyLIMS.git .
# Step inside your project: init and update submodules
git submodule init
git submodule update
NOTE: Make sure you have configured your public ssh key correctly in github settings, as submodules are updated using ssh connection instead of http. You can add it to your github account here.
As you can check on the /srv/iSkyLIMS directory, iSkyLIMS installation has the following modules:
- iSkyLIMS_home
- iSkyLIMS-drylab
- iSkyLIMS-wetlab
- django-utils
Each of the four modules has the set of required static files under /srv/iSkyLIMS//static. Some of them are common to all or some of the modules( stored under "iSkyLIMS_common_static"), while others related to a specific module. (are stored under /srv/iSkyLIMS/module/static/module/)
a) in the development phase: django development server ("runserver") fetch the static files in directories /srv/iSkyLIMS/module/static/module. Currently, and as a temporary solution we have stored the common files in the static directory of the four modules in order to let django reach them (so, yes, they are duplicated). Our intention is (logically) to have them in just one place, but until figuring out how to do it, a modification in one of the files should be replicated in the other copies of the same file. Sorry for the disturbance.
b) in the production phase: as you will see in the Apache section, django "collectstatus" fetches all of the modules static files and let them ready under /srv/iSkyLIMS/static. Just one instance of the common files is created (under (/srv/iSkyLIMS/static/iSkyLIMS_common_static))
Create the document folder to save all documents that needs to be handled by iSkyLIMS
mkdir -p /srv/iSkyLIMS/documents/wetlab/tmp
mkdir -p /srv/iSkyLIMS/documents/drylab
mkdir -p /srv/iSkyLIMS/logs