Created
December 1, 2011 15:33
-
-
Save dkobia/1417600 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Remove Everything First ... Start From Scratch | |
rm -rf /Users/david/LOCALHOST/Swiftriver/* | |
# Syncs REPO with RIVER.DEV on LOCALHOST | |
rsync -a --exclude ".git/" --exclude ".gitignore" --exclude ".DS_Store" /Users/david/repos/Swiftriver/ /Users/david/LOCALHOST/Swiftriver/ | |
mkdir /Users/david/LOCALHOST/Swiftriver/application/cache/ | |
mkdir /Users/david/LOCALHOST/Swiftriver/application/logs/ | |
chmod 0777 /Users/david/LOCALHOST/Swiftriver/application/cache/ | |
chmod 0777 /Users/david/LOCALHOST/Swiftriver/application/logs/ | |
# Wipe the Database | |
mysql5 -uroot -pXXXXXXXX<<EOFMYSQL | |
DROP DATABASE IF EXISTS swiftriver; | |
CREATE DATABASE IF NOT EXISTS swiftriver; | |
EOFMYSQL | |
# Import Dump | |
mysql5 swiftriver -uroot -pXXXXXXXX < /Users/david/LOCALHOST/Swiftriver/install/sql/swiftriver.sql | |
# Turn on the Twitter Plugin | |
mysql5 -uroot -pXXXXXXXX<<EOFMYSQL | |
USE swiftriver; | |
INSERT INTO plugins (id, plugin_path, plugin_name, plugin_description, plugin_enabled) VALUES (1,'twitter','Twitter','Adds the twitter service to Swiftriver.',1); | |
INSERT INTO plugins (id, plugin_path, plugin_name, plugin_description, plugin_enabled) VALUES (2,'tagthenet','TagThe.net','TagThe.net is a simple webservice that helps tag textual content.',1); | |
EOFMYSQL | |
# Copy over an updated database.php file | |
cp -f /Users/david/LOCALHOST/swiftriver_database.php /Users/david/LOCALHOST/Swiftriver/application/config/database.php |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment