blitzjs.com icon indicating copy to clipboard operation
blitzjs.com copied to clipboard

Add documentation page on self hosting Blitz

Open flybayer opened this issue 3 years ago • 8 comments

Self hosting blitz is easy, run blitz build and blitz start, but we don't have a page on this under our "Deploying to Production" section, so people don't know it's possible.

flybayer avatar Apr 12 '21 15:04 flybayer

Hi @flybayer, if this issue is still open maybe I can take it up. Also just wanted to know where exactly you want this change. Is it in architecture.md file in blitz repo? Deployment-agnostic-architecture.md

Hardik3296 avatar May 16 '21 17:05 Hardik3296

Hi @Hardik3296. As far as I know, nobody is working on it, so you can give it a try. I think you should make a page like self-hosting.mdx and put it in "Deploy to Production".

If you want, you can also add info about using Docker (check this out: https://github.com/LoriKarikari/blitz-docker)

JuanM04 avatar May 16 '21 22:05 JuanM04

@Hardik3296 the new file will go in this repo here: https://github.com/blitz-js/blitzjs.com/tree/main/app/pages/docs

flybayer avatar May 17 '21 21:05 flybayer

image

Getting this error while trying to run the dev script. I checked the blitz.config.js, the domains are all mentioned there

image

On every try the error is same only the hostname keeps changing, but all the hostnames are already present in the domains array.

Hardik3296 avatar May 30 '21 11:05 Hardik3296

@Hardik3296 try syncing your fork with the original repo

JuanM04 avatar May 30 '21 15:05 JuanM04

I tried that but even after syncing I was getting the same error. I will try to clone again once in local. Maybe that may resolve it.

Hardik3296 avatar May 30 '21 17:05 Hardik3296

@Hardik3296 I think this is fixed now in the main Blitz repo, but not sure if the cahgne is in blitzjs.com as yet, so you can try again. Pushing the commit also allows you to view the app in the preview deployment.

Im also wondering if it may make sense to recommend that people with a smaller VPS

  1. Build the app on their own PC,
  2. FTP the output to the server,
  3. Run server specific commands like blitz prisma generate
  4. Then blitz start.

I'm using the base digital ocean droplet and when I did blitz build, the entire server would hang sometimes (taking my two running blitz apps down :( ), I needed to go into the DO console and restart the server

Roesh avatar Jun 30 '21 01:06 Roesh

Im also wondering if it may make sense to recommend that people with a smaller VPS

  1. Build the app on their own PC,
  2. FTP the output to the server,
  3. Run server specific commands like blitz prisma generate
  4. Then blitz start.

I'm using the base digital ocean droplet and when I did blitz build, the entire server would hang sometimes (taking my two running blitz apps down :( ), I needed to go into the DO console and restart the server

I think there may be a node flag or option we can set to limit the memory the process will use?

flybayer avatar Jul 03 '21 17:07 flybayer