Index: trunk/index.html =================================================================== --- trunk/index.html (revision 107) +++ trunk/index.html (revision 147) @@ -12,70 +12,31 @@ $$('pre').each(function(el) { var lighter = new Lighter(el, { altLines: 'hover', - mode: 'div' + mode: 'ol', + matchType: 'lazy' }); }); });
-
-Fuel.standard = new Class({ Extends: Fuel, initialize: function(lighter, options, wicks) { this.parent(lighter, options, wicks); } });
+
+cd ~/public_html/warehouse
+rake warehouse:bootstrap
+...
-var Wick = new Class({
+Now it's time for Step 3: Load the database schema. All of your data will be overwritten. Are you sure you wish to continue? [y/n]
+y
+mkdir -p /home/demo/public_html/warehouse/log
+!! No Ultraviolet gem found, defaulting to javascript syntax highlighting. Do not be afraid.
+!! Error loading plugins: Mysql::Error: Table 'warehouse.plugins' doesn't exist: SELECT * FROM `plugins` WHERE (name IN ('photo_gallery'))
+!! Make sure the database was created successfully and migrated.
+...
- initialize: function(match, type, index) {
- this.text = match;
- this.type = type;
- this.index = index;
- this.length = this.text.length;
- this.end = this.index + this.length;
- },
- contains: function(wick) { return (wick.index >= this.index && wick.index < this.end); },
- isBeyond: function(wick) { return (this.index >= wick.end); },
- overlaps: function(wick) { return (this.index == wick.index && this.length > wick.length); },
- toString: function() { return this.index+' - '+this.text+' - '+this.end; }
-});
+Warehouse v1.1.6 is ready to roll.
+Okay, thanks for bootstrapping! I know I felt some chemistry here, did you?
+Now, start the application with 'script/server' and visit http://mydomain.com/ to start the installation process.
- //settings
-$dir = 'js-libs/';
-$url = 'http://code.google.com/apis/ajaxlibs/documentation/index.html';
-
-//open file
-$content = get_content($url);
-echo 'Retrieved page from Google.';
-
-//parse
-$regex = '/http:\/\/ajax.googleapis.com\/ajax\/libs\/.*.js/isU';
-
-//match?
-preg_match_all($regex,$content,$matches);
-
-//make sure there are no repeated files
-$js_files = array_unique($matches[0]);
-
-//download every file and save locally
-foreach($js_files as $file) {
- //download
- $content = get_content($file);
- //save
- $filename = str_replace(array('http://ajax.googleapis.com/ajax/libs/','/'),array('','-'),$file);
- file_put_contents($dir.$filename,$content);
- //
- echo 'saving ',$file;
-}
-
-//function to grab content from a url
-function get_content($url) {
- $ch = curl_init();
- curl_setopt($ch,CURLOPT_USERAGENT,'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.13) Gecko/20080311 Firefox/2.0.0.13');
- curl_setopt($ch,CURLOPT_URL,$url);
- curl_setopt($ch,CURLOPT_RETURNTRANSFER,1);
- curl_setopt($ch,CURLOPT_CONNECTTIMEOUT,5);
- $content = curl_exec($ch);
- curl_close($ch);
- return $content;
-}