Framework:starting a new application
From Surebert wiki
Contents |
Overview
Creating a new surebert framework application is pretty easy using SVN. Before you get started you must make sure the server you are developing the surebert framework application on has the surebert framework deployed. Once deployed you can run as many apps as you want on the framework.
Check out a new blank project
The surebert framework is available from surebert.com's subversion repository
- Change directory into your apache document root
- Export a copy of the framework using svn. Change YOUR_APPLICATION_NAME to be the name of your application
bash code
git clone git://github.com/surebert/surebert-application.git YOUR_APPLICATION_NAME
Then make sure to delete to .git folder that is created.
Set folder permissions
Make sure that your web service user can write to the /private/cache and /private/logs folder
Using Apache
Set up your vhosts file
- Add the site to your httpd.conf or httpd-vhosts.conf file
text code
<VirtualHost *:80> ServerName YOUR.DOMAIN DocumentRoot /PATH/TO/$YOUR_APPLICATION_NAME/public CustomLog /PATH/TO/$YOUR_APPLICATION_NAME_access.log combined ErrorLog /PATH/TO/$YOUR_APPLICATION_NAME_error.log </VirtualHost>
restart apache
- restart your apache web server using the method for your server. Here are two examples
On RHEL servers
bash code
sudo /sbin/service httpd restart
On macs or other unix machines with service command
bash code
sudo apachectl restartUsing Nginx
Next follow the instructions you get when you visit your project homepage to set the framework include path.
What to do next
Visit the Application page for more info.