Deploy your PHP application seamlessly with CloudStation.
Visit CloudStation ·
Documentation ·
Blog
CloudStation simplifies the deployment process for developers, allowing you to focus on writing code without worrying about infrastructure. This repository showcases a simple PHP application that can be effortlessly deployed on CloudStation.
Follow these steps to get your PHP application running on CloudStation.
Ensure you have a CloudStation account. If you don't have one yet, sign up here.
Fork the Repository:
Click the Fork button at the top-right of this repository to create your own copy.
- Navigate to the CloudStation Dashboard.
- Create a new project.
- Click on
Add New
and select GitHub. - In the repositories list, select the repository you just forked.
- Choose a subdomain for your App i.e
php-example
, and click Deploy.
CloudStation first checks if your application contains a Dockerfile. If a Dockerfile is present, it will be used for building your application. If no Dockerfile is found, CloudStation uses Nixpacks, a build system that automatically detects the programming language and framework of your application. For this PHP application, Nixpacks identifies it as a PHP project and manages the entire build process seamlessly. This approach simplifies the deployment workflow and reduces setup time for projects without a custom Dockerfile.
Once deployed, your application will be accessible at https://php-example.cloud-station.app.
This sample PHP application consists of the following files:
index.php
: The main entry point of the application.config.php
: Contains configuration settings.functions.php
: Includes utility functions.style.css
: Provides basic styling for the application.
To modify the application, simply make changes in your forked repository and push them. CloudStation will automatically rebuild and redeploy your application.
We welcome contributions to enhance this example application. Feel free to fork the repository, create a feature branch, and submit a pull request.
For support, visit our Help Center or reach out via Slack.