Never been to DZone Snippets before?

Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

About this user

Tim Morgan http://timmorgan.org

« Newer Snippets
Older Snippets »
Showing 1-1 of 1 total  RSS 

Ultimate Radiant CMS Script

This is a script that builds a Radiant CMS site with several third-party extensions I use a lot. This just saves me time from having to look up the setup commands each time. YMMV

I call this power_radiant and stick it in /usr/local/bin.

Update: this has been fixed to work with latest Radiant code (since svn path as changed and freeze:edge task no longer works). You will need Git to be installed on your machine for this to work.

   1  
   2  #!/bin/sh
   3  radiant --database sqlite3 $1
   4  cd $1
   5  echo "
   6  production:
   7    adapter: sqlite3
   8    database: db/production.sqlite3
   9  test:
  10    adapter: sqlite3
  11    database: db/test.sqlite3
  12  development:
  13    production
  14  " > config/database.yml
  15  svn export http://svn.radiantcms.org/radiant/trunk/extensions/shards/ vendor/extensions/shards
  16  svn export svn://zuurstof.openminds.be/home/kaizer/svn/rails_stuff/radiant_extensions/wym_editor_filter vendor/extensions/wym_editor_filter
  17  svn export http://svn.seancribbs.com/svn/rails/plugins/extensions/page_attachments vendor/extensions/page_attachments
  18  #rake radiant:freeze:edge # stopped working in latest gem
  19  git clone git://github.com/seancribbs/radiant.git /tmp/radiant
  20  cp -r /tmp/radiant/radiant vendor/radiant
  21  rake production db:bootstrap
  22  rake production db:migrate:extensions
  23  rake production radiant:extensions:wym_editor_filter:install
  24  rake production radiant:extensions:page_attachments:update


To run:
   1  power_radiant my_site
« Newer Snippets
Older Snippets »
Showing 1-1 of 1 total  RSS