Loving Coding & Visual Design

用Heroku建站

install ruby192

install rails stand-alone
http://rubyforge.org/frs/download.php/63167/rails-2.3.4.gem

gem install rails
gem install heroku

rails new zdcms
heroku create zdcms

cd zdcms
git init

git add .
git commit -n 'fisrt cm'

git remote add heroku git@heroku.com:appname.git

git push heroku master

next: http://guides.rubyonrails.org/getting_started.html


1 git clone -o heroku git@heroku.com:zdcms.git

25 script/generate controller home index
26 git add .
27 git commit -m 'generate controller home index'
28 git push heroku master
29 git commit -a -m 'generate controller home index'
30 git push heroku master
31 git push --help
32 git push --help

34 cd zdcms
35 git push heroku
36 git -f push heroku master
37 git push -f heroku master
38 git commit -a -m 'add .gems'
39 git add .
40 git commit -m 'add .gems'
41 git push heroku
42 heroku ps
43 git commit -a -m 'update routes.rb'
44 git push heroku
45 heroku ps
46 heroku logs
47 heroku logs
48 git commit -a -m 'update routes.rb'
49 git push heroku



下一页


最 近 文 章

  1. 重新学习Linux - Mon, 30 Nov -0001 00:00:00 +0000
  2. Linux基本管道命令 - Mon, 30 Nov -0001 00:00:00 +0000
  3. Reading - Mon, 30 Nov -0001 00:00:00 +0000
  4. 关于数据统计 - Mon, 30 Nov -0001 00:00:00 +0000
  5. Redis使用小结 - Mon, 30 Nov -0001 00:00:00 +0000
  6. Selenium自动化测试 - Mon, 30 Nov -0001 00:00:00 +0000
  7. 关于selinux - Mon, 30 Nov -0001 00:00:00 +0000
  8. PostgreSql常见问题 - Mon, 30 Nov -0001 00:00:00 +0000
  9. 使用SSL - Mon, 30 Nov -0001 00:00:00 +0000
  10. API设计心得 - Mon, 30 Nov -0001 00:00:00 +0000