This project is configured for automatic deployment to the Render hosting platform.
This repository contains a render.yaml file in the root directory that uses Render's "Blueprint" feature. This file tells Render everything it needs to know to deploy the application, including:
- A web service running the Laravel application. This service is built using the
Dockerfilein the root of the repository. - A PostgreSQL database for storing data.
When you push changes to the main branch on GitHub, Render will automatically:
- Detect the changes.
- Build the Docker image for the application.
- Run the
buildCommanddefined inrender.yamlto execute database migrations (php artisan migrate --force). - Deploy the new version of the application.
To get your own version of this application running on Render, follow these steps:
-
Fork this Repository: Create your own copy of this repository on GitHub.
-
Sign up for Render: If you don't have one already, create an account on Render.
-
Create a New Blueprint Service:
- From your Render Dashboard, click New + and select Blueprint.
- Connect your GitHub account and select the repository you forked.
- Render will automatically find and parse the
render.yamlfile. - Give your services unique names (e.g.,
my-ote-app-webandmy-ote-app-db). - Click Apply.
Render will now build and deploy your application. You can monitor the progress in the Render dashboard. Once complete, your application will be live at a URL like https://your-app-name.onrender.com.
This setup uses Render's free tier, which has the following limitations:
- Web Service: The service "spins down" after 15 minutes of inactivity. The next request will cause a delay of 20-30 seconds while it restarts.
- Database: The free PostgreSQL database is automatically deleted after 30 days. This makes it suitable for demos and testing, but not for production use. To retain your data, you must upgrade to a paid database plan on Render.