現在Rspecの勉強を行っています。
必要事項を対応しbin/rspecを実行したところ下記エラーがでましghた
vagrant@vagrant-ubuntu-trusty:~/workspace/achieve$ bin/rspec /home/vagrant/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/fog-core-1.45.0/lib/fog/core/service.rb:244:in `validate_options': Missing required arguments: aws_access_key_id, aws_secret_access_key (ArgumentError)
エラーの原因として
`validate_options': Missing required arguments: aws_access_key_id, aws_secret_access_key (ArgumentError)
と、ArgumentErrorが出ています
ぐぐって解決策がないか探したところ、下記がありました
https://stackoverflow.com/questions/28995164/missing-required-arguments-aws-access-key-id-aws-secret-access-key
しかし、下記はなにをするのかが理解ができず、ここで挫折中です。
You need to set the environment variables S3_ACCESS_KEY_ID and S3_SECRET_ACCESS_KEY so that they are available in Rails. You can do this in the terminal: export S3_ACCESS_KEY_ID=<your access key id> export S3_SECRET_ACCESS_KEY=<your secret access key> Add those to your .bashrc or .bash_profile so they persist next time you start a new shell or use something like dotenv to make them specific to your project.
このエラーを解決する為にこれからなにを行うべきがお知恵を拝借できないでしょうか・・・・?
><
何卒有識者の方、お知恵を拝借できれば幸いです
宜しくお願い致します。
回答2件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。