From ba948f46a771113458a9bc158b698c525abcca94 Mon Sep 17 00:00:00 2001 From: Parziphal Date: Wed, 18 Dec 2013 22:46:36 -0500 Subject: [PATCH] Moved assets compilation to the end. Thus, in case of error, the assets can be compiled with the "assets compile:all" command. --- install.php | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/install.php b/install.php index 2052100..492f3dc 100755 --- a/install.php +++ b/install.php @@ -68,19 +68,6 @@ Rails\ActiveRecord\ActiveRecord::connection()->executeSql( $c->put("done"); -/** - * Compile assets - */ -$c->put("\n"); -$c->put("Compiling assets", null, Color::BLUE); - -# Set console to assets -Rails::assets()->setConsole($c); - -# Compile files -Rails::assets()->compileAll(); - - /** * Create /public/data folders */ @@ -104,6 +91,20 @@ foreach ($dirs as $dir) { mkdir($path); } } + + +/** + * Compile assets + */ +$c->put("\n"); +$c->put("Compiling assets", null, Color::BLUE); + +# Set console to assets +Rails::assets()->setConsole($c); + +# Compile files +Rails::assets()->compileAll(); + $c->put("done");