remix_test
1.0.0
从您的航站楼:
npm run dev这以开发模式启动您的应用程序,在文件更改中重建资产。
首先,构建生产应用程序:
npm run build然后以生产模式运行该应用:
npm start现在,您需要选择一个主机将其部署到。
如果您熟悉部署节点应用程序,则内置的混音应用程序服务器已准备就绪。
确保部署remix build的输出
build/public/build/当您运行npx create-remix@latest有一些托管选择。您可以再次运行该项目以创建一个新项目,然后将app/文件夹复制到针对目标服务器预配置的新项目。
cd ..
# create a new project, and pick a pre-configured host
npx create-remix@latest
cd my-new-remix-app
# remove the new project's app (not the old one!)
rm -rf app
# copy your app over
cp -R ../my-old-remix-app/app app