spree on heroku pt.1

[postlink]http://tubehack.blogspot.com/2009/10/spree-on-heroku-pt1.html[/postlink]http://www.youtube.com/watch?v=D0WhxO0W_n4endofvid
[starttext]
THINGS TO BE IN YOUR MACHINE FIRST BEFORE DOING THE PROJECT:
(GOOGLE IT!)

POSTGRESQL8.3
GIT-1.6.0.2(OPTIONAL)
GIT
RUBY186-27_RC1 OR LATER
RUBYgems 1.3.1 or later
Rails


BEFORE I BEGIN, I WOULD LIKE TO INTRODUCE MY SELF,
I'M ARJAY ORCASITAS, A STUDENT OF DE LA SALLE-COLLEGE OF ST. BENILDE.

NOW LET'S BEGIN THE ACTUAL DEMONSTRATION

OPEN GIT BASH(OR YOUR COMMAND PROMPT. BUT MAKE SURE GIT IS INSTALLED IN YOUR MACHINE)

KEY IN: git clone git://github.com/schof/spree.git spree

then key in rake gems:install

SO SINCE HEROKU HAS IT'S OWN WAY OF DEPLOYING YOUR GEMS, LET'S INSTALL THE
NECESSARY GEMS MANUALLY.

gem install activemerchant
gem install has_many_polymorphs
gem install highline --version 1.4.0
gem install mini_magick
gem install tlsmail

then once you've already installed those gems above, copy them manually.
(C:\Ruby\lib\ruby\gems\1.8\gems) and put them in vendor\gems

once copied, open the the sciTE IDE and open the config\environment.rb and config\boot.rb


you have to change the RAILS_GEM_VERSION = "2.1.2" unless defined? RAILS_GEM_VERSION

to RAILS_GEM_VERSION = "2.1" unless defined? RAILS_GEM_VERSION in config\environment.rb and

load_rails("2.1.2") in line 58 to load_rails("2.1").

gem install postgres-pr

you have to update the database.yml in the config folder. I suggest that you
do it in postgresql configuration because heroku uses postgre.

here's my database.yml configuration:

development:
adapter: postgresql
host: localhost
port: 5432
database: postgres
username: postgres
password: jaythree


after this, key in rake db:bootstrap press enter 3 times

script/plugin install git://github.com/adamwiggins/yaml_db.git

rake db:data:dump

gem install heroku

ssh-add -d enter 3 times

git init
git add .
git commit -m "init"
heroku create existingapp-deploy
git remote add heroku git@heroku.com:existingapp-deploy.git
git push -f heroku


click gear, click rake

key in rake db:data:load

arjayorcasitas.com(thx to the author to upload this useful video to youtube.com)
spree6.heroku.com
[endtext]
blog comments powered by Disqus

let's share the traffic with us

$4 n your banner will shown here

Advertising in this Blog?

$4 n your ads will show here

Archives