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

Update installation instructions #66

Open
yayvery opened this issue May 24, 2021 · 1 comment
Open

Update installation instructions #66

yayvery opened this issue May 24, 2021 · 1 comment
Labels
documentation Improvements or additions to documentation

Comments

@yayvery
Copy link
Contributor

yayvery commented May 24, 2021

No description provided.

@yayvery yayvery added the documentation Improvements or additions to documentation label May 24, 2021
@yayvery yayvery added this to the Initial release milestone May 24, 2021
@yayvery
Copy link
Contributor Author

yayvery commented Jun 1, 2021

Copied from Discord message:

Download app.spec from https://github.com/joincomet/comet/blob/main/.do/app.yaml
Change name/region if you want
Change to latest or a specific version ie v0.0.79. Latest version can be found at https://github.com/joincomet/comet/tags. The tag you are using should be the same version as your frontend deployment (more info on frontend below)
Change the environment variables under envs section (dont touch the first 3 and you can remove SENTRY_DSN)
For the AWS related variables you can use DigitalOcean Spaces or AWS S3 (I am using Spaces)
If you are using Spaces name the bucket the same as the domain you are hosting media on (ie media.joincomet.app). Specify this in the MEDIA_DOMAIN variable
Remove the domains section or change the domain if you have a custom domain you want to use
The Redis server is optional if you will not be horizontally scaling (and will save you money if you don't use it). If you don't want to use Redis, remove REDIS_URL from envs and remove the redis section from databases
Install doctl (https://github.com/digitalocean/doctl), log in, and run doctl apps create --spec ./app.spec

DO is only used for the backend, hosting the frontend is up to you. It is a React client-side site, so you have a lot of options. I am using Github Pages and an Action to build/deploy it, but I'm not sure if that's an option for forks.
One option is fork the repo and use Cloudflare Pages (https://pages.cloudflare.com/).
Tell Cloudflare Pages to run yarn run build:web
Set output directory to web/dist.
Cloudflare Pages builds a new deployment every time you commit to the repo. You can use empty commits to force a rebuild.
Set environment variable VITE_API_DOMAIN to the domain the DO app is running on (ie api.joincomet.app)

@yayvery yayvery removed this from the Initial release milestone Jun 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

1 participant