简体   繁体   中英

How to deploy Nuxt ssr to Cpanel

我是 vueJs 和 nuxt 的新手,我正在尝试将我的 nuxt 应用程序部署到我的服务器,我尝试了命令npm run build并且我有两个文件,客户端和服务器,我用谷歌搜索了我应该如何处理这些文件,但我什么都没有,那么如何将我的应用程序部署到 cpanel?

If your target is server (default), you indeed need to do npm run build . Then, you have a generated dist that you need to send to the server and then npm run start .

Sometimes, additional configuration is required and can be found in the deployment pages. There is no Cpanel but you maybe can find something that looks like the same here: https://nuxtjs.org/docs/2.x/deployment/deploying-to-21yunbox

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM