Created
February 1, 2022 13:20
-
-
Save rallisf1/94a5dd892017b8d7b4a70cd62dc2e33f to your computer and use it in GitHub Desktop.
plesk git sveltekit
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(() => import('./index.js'))(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"type": "module" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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 change16
to the node version you are using.Add a folder named
plesk
in your repository and inside the 2 files:index.cjs
andpackage.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.