Skip to content
This repository has been archived by the owner on May 15, 2023. It is now read-only.

a127 ignores .ebextensions in EB deploy #47

Open
girishbr opened this issue Sep 25, 2015 · 0 comments
Open

a127 ignores .ebextensions in EB deploy #47

girishbr opened this issue Sep 25, 2015 · 0 comments

Comments

@girishbr
Copy link

Without the config file in .ebextensions, SSL won't work on Amazon EB

This monkey patch to amazon.js does the trick

function getFiles(dir, files) {
  files = files || [];
  var dirFiles = fs.readdirSync(dir);
  for (var i = 0; i < dirFiles.length; i++) {

    var name = dir + '/' + dirFiles[i];

    if (fs.statSync(name).isDirectory()) {
      if (dirFiles[i] === 'node_modules' || dirFiles[i] === '.git' ) { continue; }
      // if (dirFiles[i][0] === '.') { continue; } 
      getFiles(name, files);
    } else {
      if (dirFiles[i] === '.DS_Store') { continue; }
      files.push(name);
    }
  }
  return files;
}
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant