Skip to content

Instantly share code, notes, and snippets.

@zealot128
Created March 12, 2012 23:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zealot128/2025476 to your computer and use it in GitHub Desktop.
Save zealot128/2025476 to your computer and use it in GitHub Desktop.
Drupal 7 Installation with compass configuration
# Download latest Drupal
version="7.12"
wget http://ftp.drupal.org/files/projects/drupal-$version.tar.gz
tar xf drupal-$version.tar.gz
mv drupal-$version/.* . -f
mv drupal-$version/* .
rm drupal-$version.tar.gz -rf drupal-$version
rm *txt -f
wget http://ftp.drupal.org/files/translations/7.x/drupal/drupal-7.11.de.po -O profiles/standard/translations/drupal-7.11.de.po
chown www-data\: sites/default/ -R
# Install Drupal through browser
# Install some handy modules
drush dl -y views pathauto transliteration xmlsitemap admin_menu submitted_by gravatar media_internet html5_tools emfield l10n_update imce_wysiwyg panels
drush en -y views_ui pathauto transliteration xmlsitemap_node xmlsitemap_engines admin_menu admin_menu_toolbar submitted_by gravatar media_internet html5_tools emfield l10n_update imce_wysiwyg wysiwyg panels_node admin_menu_toolbar
mkdir sites/all/libraries -p
cd sites/all/libraries
wget "http://download.cksource.com/CKEditor/CKEditor/CKEditor%203.6.2/ckeditor_3.6.2.tar.gz"
tar xf ckeditor_3.6.2.tar.gz
rm ckeditor_3.6.2.tar.gz
cd ../../..
# Textile
drush dl -y textile
drush en -y textile
wget http://textpattern.googlecode.com/svn/development/4.x/textpattern/lib/classTextile.php -O sites/all/modules/textile/include/classTextile.php
# git
git init
git add .
git ci -m "initial"
drush dis -y toolbar color comment contextual dashboard dblog help overlay rdf
chown www-data\: sites/default/ -R
# Default HTML5 base theme with compass/sass
# install compass and handy plugins:
# gem install compass sass font-stacks bourbon
drush dl boron
drush en boron
cd sites/all/themes/boron
mkdir sass
sass-convert css/layout.css sass/layout.sass
echo '# Require any additional compass plugins here.
require "font-stacks"
require "fancy-buttons"
# Set this to the root of your project when deployed:
http_path = "/"
css_dir = "css"
sass_dir = "sass"
images_dir = "img"
javascripts_dir = "js"
output_style = :compressed
' > config.rb
bourbon install
mv bourbon sass/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment