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