mirror of
https://github.com/flarum/framework.git
synced 2025-02-08 02:57:05 +08:00
Add helpful (?) output to test setup script
This commit is contained in:
parent
d387a9ff02
commit
df0bd52283
|
@ -15,6 +15,25 @@ use Flarum\Install\Installation;
|
||||||
|
|
||||||
require __DIR__.'/../../vendor/autoload.php';
|
require __DIR__.'/../../vendor/autoload.php';
|
||||||
|
|
||||||
|
$host = env('DB_HOST', 'localhost');
|
||||||
|
$port = intval(env('DB_PORT', 3306));
|
||||||
|
$name = env('DB_DATABASE', 'flarum_test');
|
||||||
|
$user = env('DB_USERNAME', 'root');
|
||||||
|
$pass = env('DB_PASSWORD', '');
|
||||||
|
$pref = env('DB_PREFIX', '');
|
||||||
|
|
||||||
|
echo "Connecting to database $name at $host:$port.\n";
|
||||||
|
echo "Logging in as $user with password '$pass'.\n";
|
||||||
|
echo "Table prefix: '$pref'\n";
|
||||||
|
|
||||||
|
echo "\n\nCancel now if that's not what you want...\n";
|
||||||
|
echo "Use the following environment variables for configuration:\n";
|
||||||
|
echo "DB_HOST, DB_PORT, DB_DATABASE, DB_USERNAME, DB_PASSWORD, DB_PREFIX\n";
|
||||||
|
|
||||||
|
sleep(5);
|
||||||
|
|
||||||
|
echo "\nOff we go...\n";
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Setup installation configuration
|
* Setup installation configuration
|
||||||
*/
|
*/
|
||||||
|
@ -51,3 +70,5 @@ $pipeline = $installation
|
||||||
*/
|
*/
|
||||||
|
|
||||||
$pipeline->run();
|
$pipeline->run();
|
||||||
|
|
||||||
|
echo "Installation complete\n";
|
||||||
|
|
Loading…
Reference in New Issue
Block a user