Create Project
Before creating a project, it is important to understand some key concepts. We have made these concepts easy to grasp, so you can quickly start creating your project.
Your servers, previously added to your account and provisioned by Depfloy, come pre-configured with everything needed to run modern JavaScript and PHP applications. Your server supports all current web frameworks including Laravel, Wordpress, Next.js, Nuxt.js, Remix, React Router, TanStack Start and other frameworks. Servers come with Node.js 22.x (current stable LTS version) pre-installed.
Additionally, the services selected during the server provisioning process are installed, such as database, redis and php. If you are going to install a PHP application, make sure that the PHP and other required services are installed on the server you selected.
To create a project in Depfloy, go to the projects page and click the "Create Project" button.
Fill in the required information on the form to start the project creation process:
- Server: The server you want to use for your project.
- Source Control Provider: The source control provider you want to use for your project.
- Repository URL: The repository URL of the project.
- Branch: The branch of the project.
- Framework: The framework you want to use for your project.
- Project Name: The name of the project.
- Project Domain: The domain of the project.
- Redirect Status: The redirect status of the project. You can choose from the following options: www.example.com -> example.com, example.com -> www.example.com, example.com -> example.com.
- Environment variables: The environment variables of the project. You can copy and paste the environment variables from the .env file of your project.
- Custom Build Command: An install command runs every time you deploy your project. By default, Depfloy runs a managed install command. You can override this by adding a custom install command.
- Custom Install Command: A build command runs every time you deploy your project. By default, Depfloy runs a managed build command. You can override this by adding a custom build command.
- Enable Auto Deploy: Whether to enable auto deploy for the project.
- Enable SSL: Whether to enable SSL for the project.
Once you have filled in the required information, click the 'Create Project' button to begin the project creation process. Your project will be created and deployed within minutes.
While your project is being created, please update your domain DNS settings to point to your server IP address.
You can view the records you need to add to your DNS provider by visiting the domain section https://app.depfloy.com/projects/<projectID>/domains.
Custom Deployment Script
If you are using a custom deployment script, you can add it after the project is created. You can find the custom deployment script input in the project settings page https://app.depfloy.com/projects/<projectID>/settings.
You don't need to add commands like "sudo -S service php8.2-fpm reload" or "composer install". These commands will be executed automatically.
Example of a custom deployment script:
php artisan horizon:terminate
php artisan cache:clear