Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add documentation page on self hosting Blitz #438

Open
flybayer opened this issue Apr 12, 2021 · 8 comments
Open

Add documentation page on self hosting Blitz #438

flybayer opened this issue Apr 12, 2021 · 8 comments

Comments

@flybayer
Copy link
Member

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.

@Hardik3296
Copy link
Contributor

Hardik3296 commented May 16, 2021

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

@JuanM04
Copy link
Contributor

JuanM04 commented May 16, 2021

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)

@flybayer
Copy link
Member Author

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

@Hardik3296
Copy link
Contributor

Hardik3296 commented May 30, 2021

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.

@JuanM04
Copy link
Contributor

JuanM04 commented May 30, 2021

@Hardik3296 try syncing your fork with the original repo

@Hardik3296
Copy link
Contributor

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.

@Roesh
Copy link
Collaborator

Roesh commented Jun 30, 2021

@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

@flybayer
Copy link
Member Author

flybayer commented Jul 3, 2021

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
HQ
Triage
Development

No branches or pull requests

5 participants