nodejs-joomla icon indicating copy to clipboard operation
nodejs-joomla copied to clipboard

Problem connecting to site via /path/to/site

Open dsl101 opened this issue 10 years ago • 0 comments

The regex in config.js doesn't match my configuration.php layout (Joomla 2.5) - it uses var instead of public. The fix is simple - just remove the 'public' prefix and leave it simply as '$'. Here's the altered initialisation for config_file in config.js (sorry, didn't have the energy to do a proper diff :) :

var config_file = fs.readFileSync(config + '/configuration.php', 'UTF-8'),
  match,
  re = /\$(\S+) = '(\S+)';/g;

dsl101 avatar Jun 03 '14 12:06 dsl101