Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我将 SvelteKit (1.0.0) 与节点适配器一起使用。
我想在我的服务器上使用它并以pm2.
pm2
在没有节点适配器的情况下启动 Svelte 应用程序的最佳方法是什么npm start?
npm start
我不需要 pm2 命令,只需要 Svelte 的 npm 命令。
node build/index.js # Start production server
完整示例:
npm init svelte@next # Initialize project npm install # Install dependencies npm run build # Build production version node build/index.js # Start production server