Posted By

brettbergeron on 08/25/09


Tagged

php svn Shell Bash ruby unix subversion linux codeigniter


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

ahmedalttai
Priestd09


Automatically Perform Custom CodeIgniter install


 / Published in: Ruby
 

URL: http://brettbergeron.com

The Ruby script below helps me install CodeIgniter & automatically restructure the application directory to allow multiple apps in a single CI install.

I've left out the core index file for CI since it requires some hacking to permit multiple applications.

  1. #
  2. # install.rb
  3. #
  4.  
  5. `cd ..`
  6.  
  7. puts "Downloading CodeIgniter..."
  8. `svn checkout http://dev.ellislab.com/svn/CodeIgniter/trunk/system/`
  9.  
  10. puts "Cleaning default application directory..."
  11. `rm -rf system/application/`
  12.  
  13. puts "Creating application directories for Roadie..."
  14. `svn export http://dev.ellislab.com/svn/CodeIgniter/trunk/system/application system/application/dev`
  15.  
  16. `mkdir system/application/test`
  17. `mkdir system/application/live

Report this snippet  

You need to login to post a comment.