Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

spree on heroku pt. 3

Loading...

Sign in or sign up now!
391 views
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Nov 24, 2008

if you find this video useful, please go to arjayorcasitas.com and click donate. thank you!

This is the part 3 of my 4 part screen cast on how I integrate the Spree shopping cart in heroku.
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
spree6.heroku.com

Category:

People & Blogs

Tags:

License:

Standard YouTube License

  • likes, 0 dislikes

Link to this comment:

Share to:

All Comments (0)

Sign In or Sign Up now to post a comment!
Loading...
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more