orionjs / orioncms-examples

Example webapp made with orion
http://orion-example.meteor.com
38 stars 26 forks source link

Error: aws "key" required #1

Closed matteodem closed 10 years ago

matteodem commented 10 years ago

Cool project! Really looking forward to checking it out. When I run meteor on this project I get following error though

[[[[[ ~/Projects/meteorjs/apps/orion-blog ]]]]]

=> Started proxy.
=> Started MongoDB.
W20141125-12:22:01.820(1)? (STDERR)
W20141125-12:22:01.891(1)? (STDERR) /Users/Matteo/.meteor/packages/meteor-tool/.1.0.35.7nk0j7++os.osx.x86_64+web.browser+web.cordova/meteor-tool-os.osx.x86_64/dev_bundle/lib/node_modules/fibers/future.js:173
W20141125-12:22:01.891(1)? (STDERR)                         throw(ex);
W20141125-12:22:01.891(1)? (STDERR)                               ^
W20141125-12:22:01.891(1)? (STDERR) Error: aws "key" required
W20141125-12:22:01.892(1)? (STDERR)     at new Client (/Users/Matteo/.meteor/packages/lepozepo:s3/.4.1.1.1jy4h0z++os+web.browser+web.cordova/npm/node_modules/knox/lib/client.js:176:27)
W20141125-12:22:01.892(1)? (STDERR)     at Function.exports.createClient (/Users/Matteo/.meteor/packages/lepozepo:s3/.4.1.1.1jy4h0z++os+web.browser+web.cordova/npm/node_modules/knox/lib/client.js:894:10)
W20141125-12:22:01.892(1)? (STDERR)     at __coffeescriptShare (packages/lepozepo:s3/server/startup.coffee:24:16)
W20141125-12:22:01.892(1)? (STDERR)     at /Users/Matteo/Projects/meteorjs/apps/orion-blog/.meteor/local/build/programs/server/boot.js:175:5
=> Exited with code: 8
W20141125-12:22:07.210(1)? (STDERR)
nicolaslopezj commented 10 years ago

Please create a file in lib/ with this content

if (Meteor.isServer) {
    process.env.AWS_KEY = 'AMAZON API KEY';
    process.env.AWS_SECRET = 'AMAZON API SECRET';
    process.env.AWS_BUCKET = 'S3 BUCKET NAME';
}

Read the instructions on how to setup the S3 bucket here In the long term solution im making a abstract filesystem for orion. Thanks!