Symfony
Simple starter for a Symfony application, fully configured for deployment
railway-symfony-webapp-starter
francis-Paul-code/railway-symfony-webapp-starter
Just deployed
Postgres
railwayapp-templates/postgres-ssl:latest
Just deployed
/var/lib/postgresql/data
Symfony Starter Project
Welcome to the Symfony Starter Project! This repository provides a boilerplate for a Symfony application, fully configured for deployment on Railway.
Features
- Symfony 6.x: The latest version of the Symfony framework.
- Dockerized Setup: Pre-configured Docker support for local development.
- Railway Deployment: Ready to be deployed on Railway with minimal configuration.
- Environment Configuration: Seamless integration with environment variables for production readiness.
Prerequisites
- Docker: Ensure you have Docker installed on your machine for local development.
- Railway CLI: Install the Railway CLI for deploying your project to Railway.
Getting Started
1. Clone the Repository
git clone https://github.com/francis-Paul-code/railway-symfony-webapp-starter.git
cd railway-symfony-webapp-starter
2. Set Up Environment Variables
Create a .env
file in the root of your project or copy the existing .env.example
:
cp .env.example .env
Update the .env
file with your database credentials and other necessary configurations.
3. Build and Run the Project
Use Docker to build and run the project locally:
docker-compose up --build
Your Symfony application should now be running on http://localhost:8000.
4. Deploy to Railway
To deploy the project to Railway, follow these steps:
- Initialize a new Railway project:
railway init
- Deploy your project:
railway up
Railway will automatically detect your environment variables and configuration. Your application will be deployed and accessible at a generated Railway URL.
Contributing
Feel free to contribute to this project by submitting issues or pull requests. We welcome all improvements!
License
This project is licensed under the MIT License.
Template Content
railway-symfony-webapp-starter
francis-Paul-code/railway-symfony-webapp-starter