簡體   English   中英

Amazon ECS-嘗試訪問過時的Ruby on Rails項目

[英]Amazon-ecs - trying to access outdated Ruby on Rails project

我正在嘗試學習如何將gem Amazon-ecs與Ruby on Rails一起使用,並發現了一個過時的項目。
鏈接: https//github.com/twler/amazon-ecs-sample

當我運行“ 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項目?

謝謝

它在我的系統中運行良好,我剛剛克隆了該項目:

shiva@ubuntu:~/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

shiva@ubuntu:~/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!

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM