Permalink
Browse files

config example

  • Loading branch information...
1 parent c06c3d1 commit 067bdd9ff5e811340d524fafeab81061ee734654 @thomaspark committed Sep 28, 2012
Showing with 21 additions and 0 deletions.
  1. +21 −0 config-example.php
View
21 config-example.php
@@ -0,0 +1,21 @@
+<?php
+// rename this file to config.php
+
+// database settings
+define('DB_NAME', 'jsbin');
+define('DB_USER', 'jsbin-user'); // Your MySQL username
+define('DB_PASSWORD', 'password'); // ...and password
+define('DB_HOST', 'localhost'); // 99% chance you won't need to change this value
+
+// change this to suite your offline detection
+define('OFFLINE', is_dir('/Users/'));
+
+define('HOST', 'http://localhost:8888/');
+
+// if you're running from a subdirectory, change this to the start of the
+// url, i.e. offline.jsbin.com/foobar/ - ROOT would be foobar
+define('ROOT', '/openhtml/');
+
+// wishing PHP were more like JavaScript...wishing I was able to use Node.js they way I had wanted...
+define('VERSION', OFFLINE ? 'debug' : trim(file_get_contents('VERSION')));
+?>

0 comments on commit 067bdd9

Please sign in to comment.