Skip to content

Commit a4e7ac5

Browse files
committed
Update example .env and readme
1 parent 79e022b commit a4e7ac5

File tree

3 files changed

+16
-10
lines changed

3 files changed

+16
-10
lines changed

.env.example

+11-2
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,23 @@ APP_DEBUG=true
33
APP_KEY=
44
APP_URL=http://localhost
55

6+
REDIS_HOST=127.0.0.1
7+
# REDIS_PASSWORD=
8+
# REDIS_PORT=
9+
# REDIS_DB=
10+
11+
# You can also use a unix socket for redis (more performant)
12+
# REDIS_CACHE_CONNECTION=unix_socket
13+
# REDIS_UNIX_SOCKET=/var/run/redis/redis.sock
14+
615
# Using Redis as cache driver instead of files (default) is recommended
7-
# CACHE_DRIVER=redis
16+
CACHE_DRIVER=redis
817

918
# Using syslog is recommended when not in development
1019
# APP_LOG=syslog
1120

1221
# Set this for live reload functionality via Pusher
13-
# BROADCAST_DRIVER=redis
22+
# BROADCAST_DRIVER=pusher
1423
# PUSHER_KEY=
1524
# PUSHER_SECRET=
1625
# PUSHER_APP_ID=

config/database.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@
114114
'host' => env('REDIS_HOST', 'localhost'),
115115
'password' => env('REDIS_PASSWORD', null),
116116
'port' => env('REDIS_PORT', 6379),
117-
'database' => 0,
117+
'database' => env('REDIS_DB', 0),
118118
],
119119

120120
'unix_socket' => [

readme.md

+4-7
Original file line numberDiff line numberDiff line change
@@ -9,23 +9,22 @@ Built by Simon Fredsted ([@fredsted](https://twitter.com/fredsted)).
99
## Requirements
1010

1111
* PHP 7
12+
* Redis
1213
* Composer
1314
* Web server
1415

16+
Version 1.1 switched to using Redis for storage. If you want to use SQLite, you can use version 1.0.
17+
1518
## Installation
1619

1720
### Web Server
1821

1922
1. Run the following commands:
20-
1. `cp .env.example .env`
23+
1. `cp .env.example .env` - adjust settings as needed
2124
2. `php artisan key:generate`
2225
3. `composer install`
23-
4. `touch database/database.sqlite`
24-
5. `php artisan migrate`
2526
2. Setup virtual host pointing to the /public folder.
2627

27-
The above will setup Webhook Tester to use SQLite as a database. If you want to use another database type, take a look in the `config/database.php` file (SQLite will work just fine, even under heavy load.)
28-
2928
### Docker
3029

3130
A Dockerfile is available at hub.docker.com: https://hub.docker.com/r/dahyphenn/webhook.site/.
@@ -34,8 +33,6 @@ A Dockerfile is available at hub.docker.com: https://hub.docker.com/r/dahyphenn/
3433

3534
The app was built with Laravel for the API and Angular.js for the frontend SPA.
3635

37-
Thanks to [Pusher](https://pusher.com) for sponsoring a plan with a higher connection limit!
38-
3936
Thanks to [da-n](https://github.com/da-n) for creating the Docker image.
4037

4138
## Donate

0 commit comments

Comments
 (0)