Moved assets compilation to the end.
Thus, in case of error, the assets can be compiled with the "assets compile:all" command.
This commit is contained in:
parent
b289ee6f53
commit
ba948f46a7
27
install.php
27
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");
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user