2015-10-02 51 views
0

我在學習如何使用Ruby on Rails上的gem,Amazon-ecs,並發現一個有點過時的項目。
鏈接:https://github.com/twler/amazon-ecs-sampleAmazon-ecs-試圖訪問過時的Ruby on Rails項目

當我運行「軌道S」,我得到這個錯誤
鏈接:http://puu.sh/kviQy/9a70448449.png

這個錯誤可能是因爲我必須填寫的鑰匙,但我不知道如何做到這一點。

Amazon::Ecs.options = { 
    :associate_tag => '[Your Associate Tag]', 
    :AWS_access_key_id => '[Your Access Key ID]',  
    :AWS_secret_key => '[Your Secret Key]' 
} 

如何在本地主機上運行此應用程序?我怎樣才能開始在一個空的Ruby on Rails項目?

感謝

+0

你確定你沒有碰到'Gemfile'文件嗎?如果有,可以將這些內容粘貼到這裏: – illusionist

+0

http://puu.sh/kvjHj/2bb4d2192f.png這是gemfile的圖像。我更改了https到http,但這就是它 –

+0

驗證寶石'amazon-ecs'已安裝 – illusionist

回答

0

它運行在我的系統太棒了,我只是克隆了一個項目:

[email protected]:~/projects/amazon-ecs-sample (master)$ rails s 
Digest::Digest is deprecated; use Digest 
=> Booting WEBrick 
=> Rails 3.2.5 application starting in development on http://0.0.0.0:3000 
=> Call with -d to detach 
=> Ctrl-C to shutdown server 
[2015-10-02 06:05:38] INFO WEBrick 1.3.1 
[2015-10-02 06:05:38] INFO ruby 2.1.1 (2014-02-24) [x86_64-linux] 
[2015-10-02 06:05:38] INFO WEBrick::HTTPServer#start: pid=4008 port=3000 

可能是,你需要確認你在幾分鐘的最新提交的所做的更改。或確保你沒有bundle install

[email protected]:~/projects/amazon-ecs-sample (master)$ bundle install 
Fetching gem metadata from https://rubygems.org/........... 
Fetching version metadata from https://rubygems.org/... 
Fetching dependency metadata from https://rubygems.org/.. 
Installing rake 0.9.2.2 
Installing i18n 0.6.0 
Installing multi_json 1.3.6 
Installing activesupport 3.2.5 
Installing builder 3.0.0 
Installing activemodel 3.2.5 
Using erubis 2.7.0 
Installing journey 1.0.3 
Installing rack 1.4.1 
Installing rack-cache 1.2 
Installing rack-test 0.6.1 
Installing hike 1.2.1 
Installing tilt 1.3.3 
Installing sprockets 2.1.3 
Installing actionpack 3.2.5 
Installing mime-types 1.18 
Installing polyglot 0.3.3 
Installing treetop 1.4.10 
Installing mail 2.4.4 
Installing actionmailer 3.2.5 
Installing arel 3.0.2 
Installing tzinfo 0.3.33 
Installing activerecord 3.2.5 
Installing activeresource 3.2.5 
Installing nokogiri 1.5.4 
Using ruby-hmac 0.4.0 
Installing amazon-ecs 2.2.4 
Installing coffee-script-source 1.3.3 
Installing execjs 1.4.0 
Using coffee-script 2.2.0 
Installing rack-ssl 1.3.2 
Installing json 1.7.3 
Installing rdoc 3.12 
Installing thor 0.15.2 
Installing railties 3.2.5 
Installing coffee-rails 3.2.2 
Installing jquery-rails 2.0.2 
Using bundler 1.9.2 
Installing rails 3.2.5 
Installing sass 3.1.19 
Installing sass-rails 3.2.5 
Installing sqlite3 1.3.6 
Installing uglifier 1.2.4 
Bundle complete! 7 Gemfile dependencies, 43 gems now installed. 
Use `bundle show [gemname]` to see where a bundled gem is installed. 
Post-install message from rdoc: 
Depending on your version of ruby, you may need to install ruby rdoc/ri data: 

<= 1.8.6 : unsupported 
= 1.8.7 : gem install rdoc-data; rdoc-data --install 
= 1.9.1 : gem install rdoc-data; rdoc-data --install 
>= 1.9.2 : nothing to do! Yay!