Add start script to package.json and enhance CI workflow for deployment
- Introduced a new "start" script in package.json to run the built application. - Updated the CI workflow to include environment variables for deployment. - Added steps for uploading build artifacts and deploying to a server using sshpass. - Configured the deployment process to ensure the application runs on the specified port.
This commit is contained in:
@@ -7,6 +7,7 @@
|
||||
"dev": "vite dev",
|
||||
"build": "vite build",
|
||||
"preview": "vite preview",
|
||||
"start": "node build",
|
||||
"prepare": "svelte-kit sync || echo ''",
|
||||
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
|
||||
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch"
|
||||
|
||||
Reference in New Issue
Block a user