Saturday, October 20, 2012

Installing JRuby in OSX

Be sure that you have installed java and download Lastest version of jruby from jruby.org website by using curl command.

curl -O http://jruby.org.s3.amazonaws.com/downloads/1.7.0.RC2/jruby-bin-1.7.0.RC2.tar.gz

Create a hidden directory under your home directory and unpack the file.

cd
mkdir .opt
mv /Downloads/jruby-bin-1.7.0.RC2.tar.gz
cd .opt
tar xvfz jruby-bin-1.7.0.RC2.tar.gz
ln -s jruby-1.7.0.RC2 jruby

Edit your .bash_profile file and add the following

export PATH=$PATH:/Users/kg/.opt/jruby/bin

Open a new terminal window

Saturday, October 6, 2012

Creating your MySQL Database





You can create three dabases and you them as your development, test and production databases. they do not have to be on differnt servers.


CREATE DATABASE myprojectdb_dev CHARACTER SET utf8;;
CREATE DATABASE myprojectdb_test CHARACTER SET utf8;;
CREATE DATABASE myprojectdb_prod CHARACTER SET utf8;;

GRANT ALL ON myprojectdb_dev.* TO 'myprojectdb'@'%' IDENTIFIED BY 'myprojectdb';
GRANT ALL ON myprojectdb_test.* TO 'myprojectdb'@'%' IDENTIFIED BY 'myprojectdb';
GRANT ALL ON myprojectdb_prod.* TO 'myprojectdb'@'%' IDENTIFIED BY 'myprojectdb';

FLUSH PRIVILEGES;

LinkWithin

Related Posts Plugin for WordPress, Blogger...