Skip to content

Instantly share code, notes, and snippets.

@rallisf1
Created February 1, 2022 13:20
Show Gist options
  • Save rallisf1/94a5dd892017b8d7b4a70cd62dc2e33f to your computer and use it in GitHub Desktop.
Save rallisf1/94a5dd892017b8d7b4a70cd62dc2e33f to your computer and use it in GitHub Desktop.
plesk git sveltekit
cd ~/server-path && PATH=$PATH:/opt/plesk/node/16/bin/ npm install
cd ~/server-path && PATH=$PATH:/opt/plesk/node/16/bin/ npm run build
cp ~/server-path/plesk/* ~/server-path/build
(() => import('./index.js'))();
{
"type": "module"
}
@rallisf1
Copy link
Author

rallisf1 commented Feb 1, 2022

Copy and paste deploy-actions to your git settings in plesk. Replace server-path with what's in the input in the same configuration page. Also change 16 to the node version you are using.

Add a folder named plesk in your repository and inside the 2 files: index.cjs and package.json

Now on each pull (by plesk) your sveltekit app will be deployed and ready to run automatically. Don't forget to setup the webhook in github so the whole process runs automatically upon each push you do from your dev environment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment