Skip to content
This repository has been archived by the owner on Apr 30, 2021. It is now read-only.

Commit

Permalink
Update to Remix 0.14
Browse files Browse the repository at this point in the history
  • Loading branch information
mjackson committed Mar 11, 2021
1 parent 144c3dd commit fde4506
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 13 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
node_modules/
package-lock.json

/.cache
/build
/public/build
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
{
"private": true,
"name": "remix-starter-express",
"version": "1.0.0",
"scripts": {
"postinstall": "remix build",
"build": "remix build",
"dev": "pm2-dev pm2.config.js",
"start": "node server.js"
},
"dependencies": {
"@remix-run/cli": "^0.13.0",
"@remix-run/data": "^0.13.0",
"@remix-run/express": "^0.13.0",
"@remix-run/react": "^0.13.0",
"@remix-run/data": "^0.14.0",
"@remix-run/express": "^0.14.0",
"@remix-run/react": "^0.14.0",
"compression": "^1.7.4",
"express": "^4.17.1",
"morgan": "^1.10.0",
Expand All @@ -21,6 +20,7 @@
"react-router-dom": "^6.0.0-beta.0"
},
"devDependencies": {
"@remix-run/dev": "^0.14.0",
"@types/react": "^17.0.1",
"@types/react-dom": "^17.0.0",
"pm2": "^4.5.4",
Expand Down
16 changes: 8 additions & 8 deletions pm2.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,21 @@ module.exports = {
{
name: "Express",
script: "server.js",
watch: ["remix.config.js", "app"],
watch: ["build/assets.json"],
watch_options: {
followSymlinks: false,
followSymlinks: false
},
env: {
NODE_ENV: "development",
},
NODE_ENV: "development"
}
},
{
name: "Remix",
script: "remix run",
ignore_watch: ["."],
env: {
NODE_ENV: "development",
},
},
],
NODE_ENV: "development"
}
}
]
};
1 change: 1 addition & 0 deletions server.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ if (process.env.NODE_ENV === "development") {
app.all(
"*",
createRequestHandler({
build: require("./build"),
getLoadContext() {
// Whatever you return here will be passed as `context` to your loaders
// and actions.
Expand Down

0 comments on commit fde4506

Please sign in to comment.