Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Load library deploy tasks before config files

This allows a user to overwrite tasks inside their roco config file. For example, changing the writeUpstartScript to match their particular development/production environment
  • Loading branch information...
commit 951b3d0cce14b1bb47bce5ce409eb11ca7adddc3 1 parent 56b8193
@log0ymxm log0ymxm authored
Showing with 6 additions and 6 deletions.
  1. +6 −6 lib/rockout.js
View
12 lib/rockout.js
@@ -116,17 +116,17 @@ Roco.prototype.init = function () {
roco.application = process.env.APP;
}
- configFiles.forEach(function (configFile) {
- if (existsSync(path.resolve(configFile))) {
- roco.load(configFile);
- }
- });
-
fs.readdirSync(cockOutDir).forEach(function (file) {
if (file.match(/\.coffee$/)) {
roco.load(path.resolve(cockOutDir, file));
}
});
+
+ configFiles.forEach(function (configFile) {
+ if (existsSync(path.resolve(configFile))) {
+ roco.load(configFile);
+ }
+ });
};
Roco.prototype.log = function () {
Please sign in to comment.
Something went wrong with that request. Please try again.