Skip to content

jtoar/docker-server-file-example

Repository files navigation

README

To reproduce...

  • upgrade to the RC:
yarn rw upgrade -t rc
6.4.0-rc.45+cd3494993
  • set up Docker:
yarn rw exp setup-docker
  • set up the server file:
yarn rw exp setup-server-file
  • diff the generated server file with the one here; there's a few changes you'll have to make (in particular, the host)

  • add the @redwoodjs/realtime package:

# make sure the version is the same as all the other `@redwoodjs` packages:
yarn workspace api add @redwoodjs/realtime@6.4.0-rc.45
  • update the Dockerfile to use the server file:
- CMD [ "node_modules/.bin/rw-server", "api", "--load-env-files" ]
+ CMD [ "node", "./api/dist/server.js" ]
  • if you're deploying to Fly, use their CLI. just say yes to everything (but you can say no to the Postgresql and Upstash redis databases if you don't want them):
flyctl launch

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published