-
Notifications
You must be signed in to change notification settings - Fork 2
/
laravel.yml
28 lines (28 loc) · 914 Bytes
/
laravel.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
source: clear
root: public_html/public
features:
- php latest
- mysql
nginx:
fastcgi: "on"
locations:
- match: /
try_files: $uri $uri/ /index.php$is_args$args
- match: ~ \.[^\/]+(?<!\.php)$
try_files: $uri =404
commands:
- composer create-project laravel/laravel .
- cp .env.example .env
- sed -ri "s/(# )?DB_CONNECTION=.*/DB_CONNECTION=mysql/g" .env
- sed -ri "s/(# )?DB_HOST=.*/DB_HOST=localhost/g" .env
- sed -ri "s/(# )?DB_PORT=.*/DB_PORT=3306/g" .env
- sed -ri "s/(# )?DB_DATABASE=.*/DB_DATABASE=${DATABASE}/g" .env
- sed -ri "s/(# )?DB_USERNAME=.*/DB_USERNAME=${USERNAME}/g" .env
- sed -ri "s/(# )?DB_PASSWORD=.*/DB_PASSWORD=${PASSWORD}/g" .env
- sed -ri "s/APP_URL=.*/APP_URL=https:\/\/${DOMAIN}/g" .env
- php artisan migrate:fresh
- php artisan key:generate
- php artisan storage:link
- npm install
- npm run build
- chmod 0750 -R storage || true