mirror of
https://github.com/prurigro/hypothetical.git
synced 2024-11-21 23:52:31 -05:00
Allow the livereload host to be set in the .env file
This commit is contained in:
parent
e0a1832d31
commit
f42f5e5a16
2 changed files with 3 additions and 1 deletions
|
@ -6,6 +6,8 @@ APP_DEBUG=true
|
||||||
APP_KEY=random_string
|
APP_KEY=random_string
|
||||||
APP_URL=http://localhost
|
APP_URL=http://localhost
|
||||||
|
|
||||||
|
LR_HOST=localhost
|
||||||
|
|
||||||
DB_HOST=localhost
|
DB_HOST=localhost
|
||||||
DB_DATABASE=hypothetical
|
DB_DATABASE=hypothetical
|
||||||
DB_USERNAME=homestead
|
DB_USERNAME=homestead
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
|
|
||||||
@if (Config::get('app.debug'))
|
@if (Config::get('app.debug'))
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
document.write('<script src="//localhost:35729/livereload.js?snipver=1" type="text/javascript"><\/script>')
|
document.write('<script src="//{{ env('LR_HOST', 'localhost') }}:35729/livereload.js?snipver=1" type="text/javascript"><\/script>')
|
||||||
</script>
|
</script>
|
||||||
@endif
|
@endif
|
||||||
</head>
|
</head>
|
||||||
|
|
Loading…
Reference in a new issue