You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

PhpStorm设置排除路径后仍上传对应文件夹问题求助

Troubleshooting PhpStorm Deployment Excluded Paths Not Working

Hey there, sorry to hear you're having trouble with PhpStorm's Deployment excluded paths not sticking! Let's go through some common fixes that usually resolve this issue:

  • Double-check your excluded paths setup
    First, make sure the paths you added use the right relative syntax. For example, if you want to exclude a node_modules folder at your project root, the path should be node_modules/ (don't forget the trailing slash to specify it's a folder). Also, double-check that you added these exclusions to the correct deployment server in the Configure dialog—it's easy to accidentally edit the wrong server's settings without noticing.

  • Add the folders to project-level exclusions
    PhpStorm has a separate project exclusion setting that can reinforce deployment rules. Head to File -> Project Structure -> Modules, select your module, then switch to the Excluded tab. Add the problematic folders here—this tells PhpStorm to treat them as non-project files, which should prevent them from being uploaded.

  • Review your upload trigger settings
    If you're using automatic uploads (Tools -> Deployment -> Automatic Upload), check the trigger type. If it's set to Always, PhpStorm might upload files before the exclusion rules are fully applied. Try switching to On explicit save action and manually trigger an upload to test if the exclusions work then.

  • Clear PhpStorm's cache
    Cached data can sometimes cause PhpStorm to ignore new settings. To fix this:

    1. Go to File -> Invalidate Caches...
    2. Check the box for Clear file system cache and local history
    3. Click Invalidate and Restart
      Once PhpStorm restarts, try deploying again to see if the excluded folders are skipped.
  • Check for conflicting deployment rules
    Take a look at Tools -> Deployment -> Options to make sure there aren't any settings overriding your exclusions. For example, if you have Upload changed files automatically to the default server enabled alongside a custom sync rule, it might bypass your excluded paths.

  • Test with a manual deployment
    Instead of relying on automatic uploads, try a manual deploy: go to Tools -> Deployment -> Upload to [Your Server Name]. When prompted, review the list of files/folders that will be uploaded—this lets you see exactly what's being included and whether your exclusions are actually being applied.

If none of these steps work, you could export your deployment config (Tools -> Deployment -> Configure -> Export) and check the XML file for any unexpected entries related to the excluded paths—sometimes there are hidden settings that don't show up in the UI.

内容的提问来源于stack exchange,提问作者user8040474

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.15 04:08:33