off-sqs-debearloper
Advanced tools
Comparing version 0.1.5 to 0.1.6
@@ -33,5 +33,6 @@ var env = process.env.NODE_ENV || 'development', | ||
if(app.env.production){ | ||
module.exports = { | ||
"AWS_CONFIG_FILE": require("../aws-config.json"), | ||
}; | ||
console.log("PRODUCTION ENVIROMENT"); | ||
var awsConfigFile = require("../aws-config.json"); | ||
console.log(awsConfigFile); | ||
app.awsConfigFile = awsConfigFile; | ||
}; | ||
@@ -45,5 +46,8 @@ | ||
if(app.env.qa){ | ||
// ... | ||
console.log("QA ENVIROMENT"); | ||
var awsConfigFile = require("../aws-config.json"); | ||
console.log(awsConfigFile); | ||
app.awsConfigFile = awsConfigFile; | ||
}; | ||
module.exports = app; |
@@ -17,3 +17,3 @@ var AWS = require('aws-sdk'), | ||
var deferred = when.defer(); | ||
AWS.config.update(config.AWS_CONFIG_FILE); | ||
AWS.config.update(config.awsConfigFile); | ||
var sqs = new AWS.SQS(); | ||
@@ -20,0 +20,0 @@ |
@@ -20,3 +20,3 @@ var AWS = require('aws-sdk'), | ||
AWS.config.update(config.AWS_CONFIG_FILE); | ||
AWS.config.update(config.awsConfigFile); | ||
var sqs = new AWS.SQS(); | ||
@@ -23,0 +23,0 @@ |
@@ -42,3 +42,3 @@ var amqp = require('amqplib'), | ||
AWS.config.update(config.AWS_CONFIG_FILE); | ||
AWS.config.update(config.awsConfigFile); | ||
var sqs = new AWS.SQS(); | ||
@@ -45,0 +45,0 @@ sqs.sendMessage(params, function(err, data){ |
{ | ||
"name": "off-sqs-debearloper", | ||
"description": "Helper app that manages SQS and RabbitMQ transactions", | ||
"version": "0.1.5", | ||
"version": "0.1.6", | ||
"repository": { | ||
@@ -6,0 +6,0 @@ "type": "git", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
11142
236