Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Adding support for command line based config file, allowing for multi…

…ple Tweeds with a single install
  • Loading branch information...
commit a9ecfb66f961359e2780a3c93ec4792cbb5040c4 1 parent 2d965f6
Remy Sharp authored
Showing with 5 additions and 1 deletion.
  1. +5 −1 cron.php
6 cron.php
View
@@ -90,8 +90,12 @@ function update_config($config, $filename) {
}
}
-
$config_file = $path . '/config.yaml';
+
+if (count($argv) > 1 && file_exists($argv[1])) {
+ $config_file = $argv[1];
+}
+
$config = Spyc::YAMLLoad($config_file);
if ($config['debug']) {
$debug = $config['debug'];
Please sign in to comment.
Something went wrong with that request. Please try again.