Framework:SBF Deployment Guide
From Surebert wiki
Contents |
Overview
The surebert framework 2.0 was created by Paul Visco in 2008 in order to streamline and standardize application development at Roswell Park Cancer Institute. It is intended for both command line and web based applications, as well as, a combination of both.
System Requirement
- PHP 5.3+
- Apache 2+
- .htaccess enabled
- note can also be used with nginx or simply from the command line
Deploying Surebert Framework To Your Server
The framework itself is installed by setting up a copy of the framework somewhere on your webserver. I would suggest /var/www/sbf although it really could be anywhere. You only need to do this once, you can then update the code from their using svn at any point. You actual projects just reference the tag you want to use, so switching to the latest surebert code requires you only change on line of your application.
Storing the framework and toolkit separate from your application also allows you to avoid having the surebert code entwined with your actual application code making version control of you app even easier.
Create a home for the framwork
Goes in /var/www/sbf but you can put it anywhere you like
bash code
mkdir -p /var/www/sbf cd /var/www/sbf
Check out the sb classes
Make the home for the framework's sb modules and check out the latest tag and the trunk, if you just want another version specify that
bash code
sudo mkdir -p /var/www/sbf/sb/ cd /var/www/sbf/sb/ git clone git://github.com/surebert/surebert-framework.git trunk
Check out the toolkit
If using the surebert javascript toolkit, check out those files as well
bash code
sudo mkdir -p /var/www/sbf/toolkit/ cd /var/www/sbf/toolkit/ git clone git://github.com/surebert/surebert-toolkit.git trunk
Check out the rp classes
Are you building a roswell application? If so you will need the framework's rp modules modules. This repo is only available on campus at roswell.
bash code
sudo mkdir -p /var/www/sbf/rp cd /var/www/sbf/rp sudo svn co https://svn2.roswellpark.org/repos/framework/tags sudo svn co https://svn2.roswellpark.org/repos/framework/trunk
Securing the Files
Make the directory read only if you want to make it so that you don't accidentally write over the files
bash code
sudo chmod -R 555 /var/www/sbf
What's to do next?
See the Framework:Application page for instructions on getting started with a new framework application.