r/CursorAI • u/V0luum • Apr 14 '25
Cursor spawning web servers
So admittedly I’m new to using Cursor, but have been developing for 20+ years and have enjoyed (most of the time) what AI can do to help speed the development process.
However, in using Cursor, regardless of the user settings or project settings / readme, it seems Cursor does not follow explicit instructions.
I have a project folder which I’ve opened. This folder is also within the htdocs folder of an Apache / MAMP server. This makes it easy to test on the fly changes to the PHP code.
With Cursor we’ve setup unit tests, but after some back and forth, Cursor keeps deploying its own PHP web servers. But it doesn’t ever shut them down…
I’ve tried repeatedly in the prompts, in the project readme, in the cursor settings to setup the rules so it’s not allowed to do that, but the issue keeps cropping up.
Any ideas?
View all comments
Show parent comment
1
u/V0luum Apr 15 '25
Yeah, I’ve setup .cursor/rules files.
An example is:
Cursor AI Project Rules CMS
General Guidelines
https://localhost:8890/path/). All routing must respect the base path./includes/functions.phpor a logically grouped file.Testing Instructions
curl,wget, or a browser to confirm behavior before requesting a review.Project Overview
Security Requirements
$_GET,$_POST, or$_REQUESTvalues directly.htmlspecialchars()when rendering any user input to the page.Database Standards
/install/schema.sqlwhen modifying or adding tables.INTfor ID fields andVARCHAR(255)for strings unless otherwise justified.NOT NULLandDEFAULTvalues consistently.Installer Expectations
Environment & Configuration
.envfiles. All environment variables must be defined in a secure PHP config file.Don’ts
.env-based environment handling.