Skip to main content

Posts

Showing posts from October, 2013

Setting mongodb, redis & postgresql on heroku step by step

Setting mongodb, redis & postgresql on heroku step by step < setting mongodb on heroku > 1. create heroku app. 2. create mongodb account  * make credit on this site :  https://addons.heroku.com/    $ heroku addons:add mongohq:sandbox (free) 3. password change https://partners.mongohq.com 4. check out the connection install Tadpole DB : https://sites.google.com/site/tadpolefordb/ mongodb://<user>:<password>@paulo.mongohq.com:10037/app18663713 user: "heroku", pwd: ***** < setting redis on heroku > 1. create heroku app 2. create redis account $ heroku addons:add rediscloud:20 3. install redis  (for redis client) http://redis.io/download 4. check out heroku redis site Endpoint  pub-redis-13710.us-east-1-4.1.ec2.garantiadata.com:13710 Redis Password ***** 5. check out the connection $ redis-cli -h pub-redis-13710.us-east-1-4.1.ec2.garantiadata.com -p 13710 $ auth ****** OK $ set redis "Hello, Redis!"

Porting rails from git to heroku

Porting rails from git to heroku - service url : http://sheepweb.herokuapp.com/ - source : - server side : https://github.com/doohee323/sheepshare - front-end : https://github.com/doohee323/sheepweb ㅇ Prerequites - ror app in github - opening account in heroku https://id.heroku.com/signup - installing heroku toolbelt https://toolbelt.herokuapp.com/ 1. git clone git clone git@github.com:doohee323/heepshare.git heepshare $ cd heepshare/ $ bundle install $ bundle update $ rake db:migrate $ rails s http://localhost:3000 2. add ssh key ssh-keygen -t rsa heroku keys:add heroku keys (checking keys) cf. if you have got 5 apps in heroku, you have to remove one. https://dashboard.heroku.com/apps 3. create app $ heroku create sheeprails $ RAILS_ENV=production rake assets:precompile 4. git config $ git config --global user.email "doohee323@gmail.com" $ git config --global user.name "Dewey Hong" $ git st

Deploy angular.js app in heroku with yeoman

[ Deploy angular.js app in heroku with yeoman ] - service url : http://sheepweb.herokuapp.com/ - source : - server side : https://github.com/doohee323/sheepshare - front-end : https://github.com/doohee323/sheepweb ㅇ Prerequites - npm installation - heroku opening https://www.heroku.com/ - git installation 1. app create mkdir yotest cd yotest yo Run the Angular generator > all enter keys 1.1 check the service grunt server 2. heroku deploy configuration yo Run the Heroku generator cd git-subtree sudo ./install.sh [?] Do you want a separate git repository in dist/? (Y/n) n => copying the content in the copy / dist section vi Gruntfile.js and paste the clipboard to copy / dist section. like below, }, { expand: true, cwd: '.tmp/images', dest: '<%= yeoman.dist %>/images', src: [ 'generated/*' ] }, { expand: true, dest: '<%=