Skip to content

Commit

Permalink
ok i changed testing around again. hope its more stable
Browse files Browse the repository at this point in the history
  • Loading branch information
soldair committed May 4, 2013
1 parent 7ce817f commit 82a62f8
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 10 deletions.
7 changes: 0 additions & 7 deletions config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,13 @@ var config = require('confuse')({files:['.s3npm.json']});
var argv = require('optimist').argv;
config._ = argv._;

console.log(process.env);

if(process.env.S3NPM_KEY) {
console.log('have key');
config.key = process.env.S3NPM_KEY;
} else {
console.log('no key!!!');
}

if(process.env.S3NPM_SECRET) {
console.log('secret!!');
config.secret = process.env.S3NPM_SECRET;
} else {
console.log('no secret!!');
}

module.exports = config;
Expand Down
1 change: 0 additions & 1 deletion lib/publish.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ module.exports = function(config,cb){
log('info','preparing publish ',packagejson.name,' in ',root,' to s3');
var s = Date.now();
exec.pack(root,function(err,tarpath,stat){
console.log(arguments);

log('info','packed tar to publish - ',Date.now()-s,'ms');
//
Expand Down
2 changes: 1 addition & 1 deletion lib/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ module.exports = function(config,cb){
var doPublic = function() {
log('info','redirecting to public repository for ',module);
// proxy to npm.
req.pipe(request((config.publicRegistry||'https://registry.npmjs.org/')+module,{strictSSL:false})).pipe(res);
req.pipe(request((config.publicRegistry||'https://registry.npmjs.org/')+data.module,{strictSSL:false})).pipe(res);
};

if(data){
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"description": "publish packages to your own s3 bucket, install an resolve nested private or public deps without replacing or hacking npm",
"main": "index.js",
"scripts": {
"test": "fail=0; for t in test/*.js; do tape $t; if [ \"$?\" != \"0\" ]; then fail=$?;fi done; exit $fail;"
"test": "fail=0; for t in test/*.js; do node $t; if [ \"$?\" != \"0\" ]; then fail=$?;fi done; exit $fail;"
},
"repository": {
"type": "git",
Expand Down

0 comments on commit 82a62f8

Please sign in to comment.