Skip to content

Commit 5e87d59

Browse files
committed
Add README and LICENSE
1 parent 890602a commit 5e87d59

File tree

2 files changed

+31
-0
lines changed

2 files changed

+31
-0
lines changed

LICENSE

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
The MIT License (MIT)
2+
Copyright (c) 2019, Render Developers
3+
4+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
5+
6+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
7+
8+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
9+

README.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Laravel 5.8 with a Docker PHP Image
2+
3+
A demo repo for deploying a Laravel PHP application on [Render](https://render.com) using Docker.
4+
5+
6+
## Deployment
7+
8+
1. [Create](https://dashboard.render.com/new/database) a new PostgreSQL database on Render and copy the internal DB URL to use below.
9+
10+
2. Fork this repo to your own GitHub account.
11+
12+
3. Create a new **Web Service** on Render, and give Render's GitHub app permission to access your new repo.
13+
14+
4. Select `Docker` for the environment, and add the following environment variable under the *Advanced* section:
15+
16+
| Key | Value |
17+
| --------------- | --------------- |
18+
| `DATABASE_URL` | The **internal connection string** for the database you created above. |
19+
| `DB_CONNECTION` | `pgsql` |
20+
| `APP_KEY` | Copy the output of `php artisan key:generate --show` |
21+
22+
That's it! Your Laravel 5.8 app will be live on your Render URL as soon as the build finishes. You can test it out by registering and logging in.

0 commit comments

Comments
 (0)