Favorite Apps and Tools of 2012
Submitted by Nathaniel Hoag on Sat, 01/05/2013 - 15:43For the time-capsule. A short list of apps and tools that were especially useful and notable from 2012.
For the time-capsule. A short list of apps and tools that were especially useful and notable from 2012.
Deploying a simple Drupal site on shared hosting with shell access.
PREPARE THE SITE
Set the theme to core:drush vset theme_default bartik
Disable non-core modules:drush pml | grep -v Core | grep Enabled | sed -n -e '/^[^(]*(\([^)]*\)).*/s//\1/p' > mods.txt
cat mods.txt | xargs drush dis
Make a database dump:mysqldump -uuser -ppass database | gzip > output.sql.gz
Make an archive of the codebase:tar -czvf site-archive.tar.gz -C site-directory .
I recently put together a basic Drupal site and this is a documentation of some of the process and components.
The site is relatively static with a few info pages, a contact form, and one section where new content can be added. The build and deploy process is a bit informal as I'm the sole developer, and will be building, deploying and then theming. The site mostly leverages core functionality, with a couple of small enhancements such a pathauto, views, wysiwyg, and a theme.
The full comment lays out the code. Pretty nifty way to prevent overwriting the live database.
Now, when @dev is used as the destination of the rsync or sql-sync command, --simulate=0 will take precedence, but when @live is the destination, then --simulate=1 will take precedence.
From: Protecting a site from having it's database overwritten. | drupal.org
Using drush site aliases in conjunction with the drush-specific rsync and sql-sync commands simplifies the process of migrating files and databases (respectively) to executing two commands in the terminal.
Nathaniel Hoag (February, 2012): Acquia U: The Fire-hose | Watering the Gardens