mirror of https://github.com/kcal-app/kcal.git
Add step to set necessary credentials on web directories
This commit is contained in:
parent
1316c5e59b
commit
a2621f7c17
18
README.md
18
README.md
|
|
@ -307,14 +307,16 @@ section for other options if lower memory support is needed.
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
1. Create database user (with secure credentials!).
|
1. Create database user.
|
||||||
|
|
||||||
sudo mysql -u root
|
sudo mysql -u root
|
||||||
CREATE DATABASE `kcal`;
|
CREATE DATABASE `kcal`;
|
||||||
CREATE USER 'kcal'@'localhost' IDENTIFIED BY 'kcal';
|
CREATE USER 'kcal'@'localhost' IDENTIFIED BY RANDOM PASSWORD;
|
||||||
GRANT ALL ON `kcal`.* TO 'kcal'@'localhost';
|
GRANT ALL ON `kcal`.* TO 'kcal'@'localhost';
|
||||||
FLUSH PRIVILEGES;
|
FLUSH PRIVILEGES;
|
||||||
|
|
||||||
|
:lock: Save the generated password output by the `CREATE USER` statement.
|
||||||
|
|
||||||
1. Install dependencies and generate an app key to use in the next step.
|
1. Install dependencies and generate an app key to use in the next step.
|
||||||
|
|
||||||
composer install --optimize-autoloader --no-dev
|
composer install --optimize-autoloader --no-dev
|
||||||
|
|
@ -325,13 +327,12 @@ section for other options if lower memory support is needed.
|
||||||
cp .env.example .env
|
cp .env.example .env
|
||||||
|
|
||||||
At a minimum:
|
At a minimum:
|
||||||
- Set `APP_KEY` to the value generated in the previous step.
|
- Set `APP_KEY` to the value generated in the previous step.
|
||||||
- Set `APP_URL` to match the host configured in nginx configuration.
|
- Set `APP_URL` to match the host configured in nginx configuration.
|
||||||
- Set the `DATABASE_` values to the configured credentials.
|
- Set the `DATABASE_` values to the configured credentials.
|
||||||
|
|
||||||
1. Run initial app installation/bootstrap commands.
|
1. Run initial app installation/bootstrap commands.
|
||||||
|
|
||||||
cd /var/www/kcal
|
|
||||||
php artisan migrate
|
php artisan migrate
|
||||||
php artisan elastic:migrate
|
php artisan elastic:migrate
|
||||||
php artisan config:cache
|
php artisan config:cache
|
||||||
|
|
@ -339,6 +340,11 @@ section for other options if lower memory support is needed.
|
||||||
php artisan view:cache
|
php artisan view:cache
|
||||||
php artisan user:add --admin
|
php artisan user:add --admin
|
||||||
|
|
||||||
|
1. Allow web server to access required directories.
|
||||||
|
|
||||||
|
sudo chown -R $USER:www-data {storage,public}
|
||||||
|
sudo chmod g+s {storage,public}
|
||||||
|
|
||||||
1. Visit the `APP_URL` and log in!
|
1. Visit the `APP_URL` and log in!
|
||||||
|
|
||||||
## Configuration
|
## Configuration
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue