V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  xinzhi  ›  全部回复第 40 页 / 共 49 页
回复总数  961
1 ... 32  33  34  35  36  37  38  39  40  41 ... 49  
2010-10-11 15:30:43 +08:00
回复了 dony945 创建的主题 分享发现 晕,编辑器也不安个?
发个帖子标题=内容,这么简单还要个编辑器干神马。
2010-10-11 14:11:02 +08:00
回复了 SolidZORO 创建的主题 问与答 现在FireFox4有办法支持FireBug了么?
上官方网站下载最新版。我一个月前就用上了。
2010-10-11 07:15:24 +08:00
回复了 proper 创建的主题 酷工作 现在国内IT的收入情况怎么样?
普通初级IT人员 = 非重点院校,非知名单位
2010-10-10 22:22:40 +08:00
回复了 xhacker 创建的主题 Linux 10.10.10 10:10 Ubuntu 10.10
@AntiGameZ 怎么可能。Server连桌面都没有,更别说桌面效果了。
2010-10-10 20:13:55 +08:00
回复了 xhacker 创建的主题 Linux 10.10.10 10:10 Ubuntu 10.10
喜欢Unity,只是笔记本不是宽屏,launcher不能自动隐藏浏览网页宽度小了。
2010-10-10 16:06:04 +08:00
回复了 Livid 创建的主题 分享发现 1:6.65
汇率继续跌,物价接着涨,水深火热的中国人,日子越来越难过了。
2010-10-10 13:50:08 +08:00
回复了 xinzhi 创建的主题 Heroku 直播:Linux下试玩Heroku
@Feuda

"
看到左侧有快速入门的教程,一看就知道是终端运行的命令行。所以第一步就是打开gnome-terminal命令终端。
"

命令终端
2010-10-10 10:00:12 +08:00
回复了 Feuda 创建的主题 Heroku 头疼:如何安装heroku?
在windows下无法直接操作。需要安装Linux虚拟机或者其他Linux虚拟环境,如Cygwin、andLinux、protable Ubuntu等。

如有可能请安装使用Linux或者Mac,或者Linux VPS。基本环境是必须的,没条件就玩不起。
2010-10-10 01:07:42 +08:00
回复了 xinzhi 创建的主题 Heroku 直播:Linux下试玩Heroku
@Feuda
我可能没空。我也不清楚怎么帮你呢。我也是第一次尝试(也许就这一次了),并不懂这个的。

@huacnlee 嗯。第一次玩呢,我说过了,只是复制粘贴,不做太多思考,不折腾~

@ssword 这是个过程,过程就是这样。。。这是个直播帖,不是总结。开始的时候我也不保证成功的。顺便其他人也可以帮忙看看哪里出问题了,这样才能进行下去。

算我侥幸成功了吧。其实就是复制粘贴,任何人都可以。如你所见。
2010-10-09 23:56:07 +08:00
回复了 xinzhi 创建的主题 Heroku 直播:Linux下试玩Heroku
OK,打完收工,Heroku app:personlab blog部署成功!

测试地址:

http://xinzhiblog.heroku.com/

好了。全部过程就在上面了。

查看时间线:
http://v2ex.appspot.com/t/3218?f=1
2010-10-09 23:54:44 +08:00
回复了 xinzhi 创建的主题 Heroku 直播:Linux下试玩Heroku
最后3步,是数据库相关操作。

xinzhi@xinzhi-laptop:~/personlab$ heroku rake db:create
DEPRECATION WARNING: railtie_name is deprecated and has no effect. (called from require at /usr/ruby1.8.7/lib/ruby/gems/1.8/gems/bundler-1.0.0/lib/bundler/runtime.rb:64)
DEPRECATION WARNING: Rake tasks in /disk1/home/slugs/313715_da72fc3_b7c2/mnt/vendor/plugins/captcha/tasks/generate.rake are deprecated. Use lib/tasks instead. (called from /disk1/home/slugs/313715_da72fc3_b7c2/mnt/Rakefile:7)
DEPRECATION WARNING: Rake tasks in /disk1/home/slugs/313715_da72fc3_b7c2/mnt/vendor/plugins/heroku_asset_cacher/tasks/heroku_asset_packager_tasks.rake are deprecated. Use lib/tasks instead. (called from /disk1/home/slugs/313715_da72fc3_b7c2/mnt/Rakefile:7)
imffcdufmx already exists
(in /disk1/home/slugs/313715_da72fc3_b7c2/mnt)
xinzhi@xinzhi-laptop:~/personlab$ heroku rake db:migrate
DEPRECATION WARNING: railtie_name is deprecated and has no effect. (called from require at /usr/ruby1.8.7/lib/ruby/gems/1.8/gems/bundler-1.0.0/lib/bundler/runtime.rb:64)
(省略输出)
/heroku_asset_packager_tasks.rake are deprecated. Use lib/tasks instead. (called from /disk1/home/slugs/313715_da72fc3_b7c2/mnt/Rakefile:7)
(in /disk1/home/slugs/313715_da72fc3_b7c2/mnt)
== CreatePosts: migrating ====================================================
-- create_table(:posts)
(省略输出)
========================================

xinzhi@xinzhi-laptop:~/personlab$ heroku rake db:seed
DEPRECATION WARNING: railtie_name is deprecated and has no effect. (called from require at /usr/ruby1.8.7/lib/ruby/gems/1.8/gems/bundler-1.0.0/lib/bundler/runtime.rb:64)
DEPRECATION WARNING: Rake tasks in /disk1/home/slugs/313715_da72fc3_b7c2
(省略输出)
Creating administrator, username:admin password:123123
Creating default menus
Creating default pages
Creating default categories
Creating sample post
xinzhi@xinzhi-laptop:~/personlab$

现在看来,我要做的事情完成了。
2010-10-09 23:50:58 +08:00
回复了 xinzhi 创建的主题 Heroku 直播:Linux下试玩Heroku
接着上面的末段信息:
Installing simple-rss (1.2.3)
Your bundle is complete! Use `bundle show [gemname]` to see where a bundled gem is installed.

Your bundle was installed to `.bundle/gems`
Compiled slug size is 14.0MB
-----> Launching.... done
http://xinzhiblog.heroku.com deployed to Heroku

To [email protected]:xinzhiblog.git
* [new branch] master -> master
xinzhi@xinzhi-laptop:~/personlab$
2010-10-09 23:50:23 +08:00
回复了 xinzhi 创建的主题 Heroku 直播:Linux下试玩Heroku
好吧,推倒重来,现在部署personlab到xinzhiblog这个app上:

xinzhi@xinzhi-laptop:~$ git clone git://github.com/huacnlee/personlab.git
Initialized empty Git repository in /home/xinzhi/personlab/.git/
remote: Counting objects: 3588, done.
remote: Compressing objects: 100% (2212/2212), done.
remote: Total 3588 (delta 1622), reused 2986 (delta 1233)
Receiving objects: 100% (3588/3588), 3.54 MiB | 50 KiB/s, done.
Resolving deltas: 100% (1622/1622), done.
xinzhi@xinzhi-laptop:~$ cd personlab
xinzhi@xinzhi-laptop:~/personlab$ heroku create --stack bamboo-ree-1.8.7 xinzhiblog
Creating xinzhiblog... done
Created http://xinzhiblog.heroku.com/ | [email protected]:xinzhiblog.git
Git remote heroku added
xinzhi@xinzhi-laptop:~/personlab$ heroku config:add HEROKU=true
Adding config vars:
HEROKU => true
Restarting app...done.
xinzhi@xinzhi-laptop:~/personlab$ git push heroku master
The authenticity of host 'heroku.com (75.101.163.44)' can't be established.
RSA key fingerprint is 8b:48:5e:67:0e:c9:16:47:32:f2:87:0c:1f:c8:60:ad.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'heroku.com,75.101.163.44' (RSA) to the list of known hosts.
Counting objects: 3588, done.
Compressing objects: 100% (1823/1823), done.
Writing objects: 100% (3588/3588), 3.57 MiB | 51 KiB/s, done.
Total 3588 (delta 1622), reused 3588 (delta 1622)

-----> Heroku receiving push
-----> Rails app detected
-----> Detected use of caches_page
Installing caches_page_via_http plugin... done
-----> Detected Rails is not set to serve static_assets
Installing rails3_serve_static_assets... done

-----> Installing gem rails 2.3.5 from http://rubygems.org
Successfully installed activesupport-2.3.5
(此处省略一大堆服务器回馈信息)
2010-10-09 23:41:25 +08:00
回复了 xinzhi 创建的主题 Heroku 直播:Linux下试玩Heroku
看来我搞错了,Install on Ubuntu 是本机部署,应该是部署到Heroku的云上,回到:

h2. Install on Heroku

$ git clone git://github.com/huacnlee/personlab.git
$ cd personlab
$ vi config/application.rb
$ heroku create --stack bamboo-ree-1.8.7 youappname
$ heroku config:add HEROKU=true
$ git push heroku master
$ heroku rake db:create
$ heroku rake db:migrate
$ heroku rake db:seed

以上过程基本顺利,配置基本不用修改吧,我也暂时不知道要改神马。git push遇到点问题,我还不清楚push用法。先去了解一下。
2010-10-09 23:25:32 +08:00
回复了 xinzhi 创建的主题 Heroku 直播:Linux下试玩Heroku
我已经安装有git了。获得源码需要修改几个配置选项,我先看下。

xinzhi@xinzhi-laptop:~$ git clone git://github.com/huacnlee/personlab.git
Initialized empty Git repository in /home/xinzhi/personlab/.git/
remote: Counting objects: 3588, done.
remote: Compressing objects: 100% (2212/2212), done.
remote: Total 3588 (delta 1622), reused 2986 (delta 1233)
Receiving objects: 100% (3588/3588), 3.54 MiB | 43 KiB/s, done.
Resolving deltas: 100% (1622/1622), done.
xinzhi@xinzhi-laptop:~$ cd personlab
xinzhi@xinzhi-laptop:~/personlab$ cp config/database.yml.default config/database.yml
xinzhi@xinzhi-laptop:~/personlab$
2010-10-09 23:23:47 +08:00
回复了 xinzhi 创建的主题 Heroku 直播:Linux下试玩Heroku
帮助文档中有Ubuntu环境下的方法:
h2. Install on Ubuntu

$ git clone git://github.com/huacnlee/personlab.git
$ cd personlab
$ cp config/database.yml.default config/database.yml
$ vi config/database.yml
$ cp config/twitter.yml.default config/twitter.yml
$ vi config/twitter.yml
$ vi config/application.rb
$ bundle install
$ RAILS_ENV=production rake db:create
$ RAILS_ENV=production rake db:migrate
$ RAILS_ENV=production rake db:seed
2010-10-09 23:22:03 +08:00
回复了 xinzhi 创建的主题 Heroku 直播:Linux下试玩Heroku
试一下@huacnlee的personlab吧,项目地址和安装文档: http://github.com/huacnlee/personlab
2010-10-09 23:19:44 +08:00
回复了 xinzhi 创建的主题 Heroku 直播:Linux下试玩Heroku
现在,已经创建了xinzhi这个app,通过 http://xinzhi.heroku.com/ 可以访问。接下来部署一个app吧,来个blog试试。
2010-10-09 23:18:29 +08:00
回复了 xinzhi 创建的主题 Heroku 直播:Linux下试玩Heroku
Email: xinzhiorg在gmail.com
Password:
Uploading ssh public key /home/xinzhi/.ssh/id_rsa.pub
Creating xinzhi... done
Created http://xinzhi.heroku.com/ | [email protected]:xinzhi.git
fatal: Not a git repository (or any of the parent directories): .git
xinzhi@xinzhi-laptop:/var/lib/gems/1.8/bin$
2010-10-09 23:16:04 +08:00
回复了 xinzhi 创建的主题 Heroku 直播:Linux下试玩Heroku
通过Google查找这个http://stackoverflow.com/questions/2396004/heroku-gem-doesnt-work-are-installing-it

按部就班:
xinzhi@xinzhi-laptop:~$ gem environment
RubyGems Environment:
- RUBYGEMS VERSION: 1.3.7
- RUBY VERSION: 1.8.7 (2010-06-23 patchlevel 299) [i686-linux]
- INSTALLATION DIRECTORY: /var/lib/gems/1.8
- RUBY EXECUTABLE: /usr/bin/ruby1.8
- EXECUTABLE DIRECTORY: /var/lib/gems/1.8/bin
- RUBYGEMS PLATFORMS:
- ruby
- x86-linux
- GEM PATHS:
- /var/lib/gems/1.8
- /home/xinzhi/.gem/ruby/1.8
- GEM CONFIGURATION:
- :update_sources => true
- :verbose => true
- :benchmark => false
- :backtrace => false
- :bulk_threshold => 1000
- REMOTE SOURCES:
- http://rubygems.org/

也就是设置bin的位置:
xinzhi@xinzhi-laptop: export PATH=$PATH:/var/lib/gems/1.8/bin

再次尝试:
xinzhi@xinzhi-laptop:heroku create xinzhi
Enter your Heroku credentials.
Email:

至此,又回到正轨了。我先测试下我的账号,还有ssh验证。
1 ... 32  33  34  35  36  37  38  39  40  41 ... 49  
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   2865 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 25ms · UTC 06:55 · PVG 14:55 · LAX 22:55 · JFK 01:55
Developed with CodeLauncher
♥ Do have faith in what you're doing.