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

[DevOps] Deploy to Fly.io #1622

Closed
evereq opened this issue Oct 23, 2023 · 0 comments · Fixed by #1657 or #1675
Closed

[DevOps] Deploy to Fly.io #1622

evereq opened this issue Oct 23, 2023 · 0 comments · Fixed by #1657 or #1675
Assignees
Labels
devops DevOps
Milestone

Comments

@evereq
Copy link
Member

evereq commented Oct 23, 2023

Description

See same in ever-co/ever-gauzy#5525

Also, see below about ways how Ever Teams can be deployed to Fly.io and similar platforms:

  1. one is to use Docker and run docker in Fly.io (and other platforms), similarly to how we do it in Ever Gauzy

  2. maybe Fly.io supports natively running NodeJs apps? If so, it's basically similar to Vercel.com, so we should use that instead of Docker for Fly.io, but we MAY need Docker anyway for other platforms.

  3. we can build Ever Teams maybe as "static" ("export" from NextJs) and deploy into some CDN in Fly.io and others (e.g. to Storage like S3 with Cloudfront in front of it, of course, what is available in Fly.io etc). However, I am NOT sure at this stage Ever Teams will work like that, most probably we are using some SSR already or something like that, hard to tell.

So yes, if we do it as 1) above, we probably have to push to some public registry Docker image and run it in Fly.io and other services. You can find relevant GitHub actions inside the Gauzy project.

How to Deploy

Create a Fly application if it does not exist

flyctl launch

Deploy

flyctl deploy

Application crashed because it ran out of memory

If you get the following error: Out of memory: Killed process 322 (node) total-vm:569056kB, anon-rss:47632kB, file-rss:4kB, shmem-rss:0kB, UID:0 pgtables:788kB oom_score_adj:0

Run the following command (add more RAM):

flyctl scale memory 1024 -a ever-teams
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
devops DevOps
Projects
Status: Done
2 participants