Skip to content

Commit de1e2e0

Browse files
authored
update dev
1 parent 1afb696 commit de1e2e0

File tree

1 file changed

+27
-8
lines changed

1 file changed

+27
-8
lines changed

contributing/development-environment.md

Lines changed: 27 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -35,16 +35,18 @@ Next we need to make a copy of `.env.example`, the environment file is what Lara
3535
cp .env.example .env
3636
```
3737

38-
You'll also want to fill in a few `DB_` variables here as well which will control which database Laravel will use. I've included MySQL as the default database for the development environment.
38+
You will copy and fill in the following Environment Variables
3939

4040
```
41-
DB_CONNECTION=mysql
42-
DB_HOST=mysql
43-
DB_PORT=3306
44-
DB_DATABASE=speedtest_tracker
45-
DB_USERNAME=sail
46-
DB_PASSWORD=password
41+
APP_NAME="Speedtest Tracker"
42+
APP_ENV=local
43+
APP_KEY=
44+
APP_DEBUG=false
45+
APP_TIMEZONE=UTC
4746
```
47+
{% hint style="info" %}
48+
Generate the APP_KEY at https://speedtest-tracker.dev
49+
{% endhint %}
4850

4951
#### 3. Install Composer dependencies
5052

@@ -81,7 +83,24 @@ To start up the environment we can now use the Sail binary that is included with
8183
sail up -d
8284
```
8385

84-
#### 6. Installing the application
86+
#### 6. Create the database
87+
88+
To start up the environment we need to make a database
89+
90+
```bash
91+
touch database/database.sqlite
92+
```
93+
94+
As well need to make the needed tables etc in the database.
95+
96+
```bash
97+
./vendor/bin/sail artisan migrate:fresh --force
98+
99+
# or if you have a Sail alias setup...
100+
sail artisan migrate:fresh --force
101+
```
102+
103+
#### 7. Installing the application
85104

86105
Once the environment is setup you can install a fresh version of the application by running the following command. Keep in mind this WILL refresh the entire database.
87106

0 commit comments

Comments
 (0)