- Ruby installed (ideally via macports or apt-get)
- Compass installed (
$ gem install compass
) - Install node (with npm). Ideally with macports or apt-get
- Install grunt and bower globally via npm (
$ npm install -g grunt-cli
,$ npm install-g bower
) - Install mongodb
You'll only need to do this once.
- git clone the repo (
$ git clone [email protected]:khalilravanna/downcloud.git
) - cd into the repo
$ npm install
$ bower install
/$ bower update
You'll do this every time you want to start the app.
- Make sure
$ mongod
is running a tab on the command line or as a daemon somewhere $ grunt serve
(from inside the repo dir)
- Heroku toolbelt
- Heroku permissions and stuff set up. Head on over here for that. It'll prolly tell you do
$ heroku login
and some other stuff. You should do that.
- From the main repo directory run
$ grunt heroku
. This will build everything into a directory insdie the main directory calleddist
. - Next we need to hook up this build directory,
dist
, with the heroku repo. To do this, firstcd
intodist
and then run$ git init
. This initializes a new git repo just for pushing to heroku. Hook it up to heroku by adding heroku as a remote$ git remote add heroku [email protected]:downcloud.git
. - Add our build stuff and commit it.
$ git add -A
and$ git commit -m "V 1.33.7 push"
. - Now we're ready to push to heroku. Just run
$ git push heroku master
.
Just repeats steps 1-4 without setting up the remote business. More explicitly:
- From the main repo directory
$ grunt heroku
$ cd dist
$ git add -A && git commit -m "your detailed commit message here"
$ git push heroku master