Welcome to the PROBETEMPLATEs where dream comes true. Dive now!

Laravel 5.8 with a Docker PHP Image

Laravel 5.8 with a Docker PHP Image
Mashiur Rahman

A demo repo for deploying a Laravel PHP application on Render using Docker. You can follow the getting started tutorial here.

Deployment

  1. Create a new PostgreSQL database on Render and copy the internal DB URL to use below.

  2. Fork this repo to your own GitHub account.

  3. Create a new Web Service on Render, and give Render's GitHub app permission to access your new repo.

  4. Select Docker for the environment, and add the following environment variable under the Advanced section:

    Key Value
    DATABASE_URL The internal connection string for the da tabase you created above.
    DB_CONNECTION pgsql
    APP_KEY Copy the output of php artisan key:generate --show

    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.

إرسال تعليق

Oops!
It seems there is something wrong with your internet connection. Please connect to the internet and start browsing again.
AdBlock Detected!
We have detected that you are using adblocking plugin in your browser.
The revenue we earn by the advertisements is used to manage this website, we request you to whitelist our website in your adblocking plugin.