Skip to content

Instantly share code, notes, and snippets.

@boranbar
Last active August 2, 2026 19:51
Show Gist options
  • Select an option

  • Save boranbar/0a10e78286c5d01e16e5a804c920976d to your computer and use it in GitHub Desktop.

Select an option

Save boranbar/0a10e78286c5d01e16e5a804c920976d to your computer and use it in GitHub Desktop.
Plesk - NPM İçinde Sürüm Bazlı PHP Scripti Tetiklemek

Plesk - NPM İçinde Sürüm Bazlı PHP Scripti Tetiklemek

package.json dosyasındaki build ve build:ssr scriptlerini aşağıdaki şekilde düzenliyoruz. 8.4 yazan yere sitenin kullandığı PHP sürümü yazılmalıdır.

{
    "scripts": {
        "build": "PATH=/opt/plesk/php/8.4/bin:$PATH vite build",
        "build:ssr": "PATH=/opt/plesk/php/8.4/bin:$PATH vite build && PATH=/opt/plesk/php/8.4/bin:$PATH vite build --ssr"
    }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment