darkmsph1t / _spartan

npm project to package & configure common security middleware && add security.js file to code repo
5 stars 0 forks source link

Absolute path to security-default.json is required in order to run the application from arbitrary location #54

Open darkmsph1t opened 6 years ago

darkmsph1t commented 6 years ago

Describe the bug if _spartan is run outside the main directory, security-default.json is not available. Must use the absolute path to the file...

To Reproduce Steps to reproduce the behavior:

  1. Run _spartan init from any folder other than ~/_spartan/
  2. At the end of the questions, you will get a 'file not found' error
  3. Run _spartan init from ~/_spartan/ folder
  4. No more error

Expected behavior security-default.json should be found/reference-able from anywhere...absolute path is needed

Screenshots

_spartan absolute path

Additional context Add any other context about the problem here.