
Windsurf is an AI-powered, agentic Integrated Development Environment (IDE) built on VS Code that generates complete full-stack applications from natural language prompts. Coolify is a self-hosted platform-as-a-service (PaaS) that manages Docker container builds, deployments, and reverse proxy routing through a web dashboard.
This guide explains how to create a full-stack application using Windsurf, pushing the source code to GitHub, and deploying it on Vultr using Coolify.
app.example.com, and point it to your server's public IP address using an A record.Download and install Windsurf, then sign in to activate the Cascade AI agent.
The Cascade agent generates full-stack application files from a text prompt. Push the generated source code to GitHub.
Click Generate a New Project to initialize the AI agent.
Enter a detailed prompt that describes the application and instructs the agent to make it Coolify-compatible. Include all necessary features and the desired service stack, and request either a Dockerfile or a docker-compose.yaml file if the application requires multiple services.
Press Enter to generate the application files.
Press Ctrl + Backtick or Cmd + Backtick on Mac to open the integrated terminal.
Optionally, test the application locally using the instructions in the generated README.md file.
Create a new repository on GitHub.
Initialize the local Git repository.
Stage the generated files for commit.
Commit the files to the local repository.
Set the default branch to main.
Add your GitHub repository as the remote origin. Replace YOUR_REPOSITORY_URL with your repository URL.
Push the source code to GitHub.
The Vultr Marketplace app provides the Coolify dashboard address in the instance management page. Open it to complete the initial account setup.
Assigning a domain to your Coolify instance gives GitHub a stable, publicly reachable webhook endpoint and enables HTTPS for the dashboard. Coolify uses this domain when registering the GitHub App.
coolify.example.com.http://YOUR_SERVER_IP:8000.https:// scheme in the URL field, for example https://coolify.example.com.https://coolify.example.com in a new tab to confirm the dashboard loads over HTTPS.Authorize Coolify to retrieve your application's source code from the GitHub repository.
Projects allow you to isolate Coolify applications into separate environments.
Link your GitHub repository to a new Coolify resource and configure the build settings before triggering the first deployment.
main..sslip.io domain for testing.Provision a managed database before deploying so the application can connect to it on startup.
Set the database connection URL and any other required secrets before the first deploy.
DATABASE_URL as the name and paste the internal connection URL as the value.Trigger the build and verify the application starts correctly using the generated test domain.
Click Deploy in the top right corner of the application’s configuration page.
Click Links in the top navigation bar.
Click the generated .sslip.io domain link and verify the application loads.
If the deployment fails, click the latest running instance of deployment under the Deployment tab to view the full error output. Copy the error and share it with the Windsurf Cascade agent to diagnose and fix the issue. Once the code is updated, push the fix to trigger a new deployment cycle:
Stage the updated files.
Commit the changes.
Push the fix to the remote repository. Coolify detects the push and redeploys automatically.
Coolify detects the push and redeploys automatically.
Replace the temporary test domain with your own domain. Coolify provisions a Let’s Encrypt certificate automatically when the domain uses https://.
.sslip.io address with your custom domain, for example https://app.example.com. Include the https:// prefix to trigger automatic Let’s Encrypt certificate provisioning.You have successfully created a full-stack application with Windsurf, pushed the source code to GitHub, and deployed it on Vultr using Coolify. The application now serves traffic over a custom domain secured with a Let's Encrypt TLS certificate and redeploys automatically on every push to the repository. For more information and advanced configuration options, visit the official Coolify documentation.
0 Comments
Be the first to comment and share your perspective with the community.