Copy the environment configuration
cp .env.example .env
and add your database connection and SMTP Server info to it.
vim .env
Just run
./install.sh
It will execute the following instructions.
# 0. Install some dependencies
if hash pecl 2>/dev/null; then
pecl install igbinary redis xdebug
else
if hash apt-get 2>/dev/null; then
apt-get install php-igbinary php-redis php-xdebug php-bcmath php-mbstring
fi
fi
composer install
# 1. Generate the key for the application.
./artisan key:generate
# 2. Drop all existing tables in your specific database.
./artisan migrate:reset
# 2. Migrate the tables.
# 3. Fill up your database with init data.
./artisan migrate --force --seed
# 4. Install the Laravel Passport used to support OAuth Server.
./artisan passport:install --force
Username | Mobile | Password | Role |
---|---|---|---|
[email protected] | 18181818181 | 123456 | Super Admin |
Reinstall like an new application according to Instruction for deployment
Just run
./install.sh
./artisan migrate:reset
The Website is open-sourced software licensed under the MIT license.