@@ -75,62 +75,4 @@ To run the docs locally, you can run:
7575``` sh
7676cd docs
7777pnpm start
78- ```
79-
80-
81- ## Upgrading Dependencies
82-
83- ``` sh
84- pnpm up --interactive --latest -r
85- ```
86-
87- ## Publishing
88-
89- ``` sh
90- pnpm build
91- # publish hypergraph
92- cd packages/hypergraph/publish
93- pnpm publish
94- # publish hypergraph-react
95- cd packages/hypergraph-react/publish
96- pnpm publish
97- # publish typesync
98- cd apps/typesync
99- pnpm publish --tag latest
100- ```
101-
102- ## Deploying your own SyncServer to Fly.io (single instance)
103-
104- ``` sh
105- # change the name of the `app` and `primary_region` in the fly.toml file
106-
107- # create a volume for the sqlite db file - replace `fra` with your region
108- fly volumes create data -s 1 -r fra
109-
110- # set the DATABASE_URL (not sure if it's necessary since already set in the Dockerfile)
111- fly secrets set DATABASE_URL=file:/data/production.sqlite
112- # set the Privy app secret, id and chain (fill in your values)
113- fly secrets set PRIVY_APP_SECRET=< PRIVY_APP_SECRET>
114- fly secrets set PRIVY_APP_ID=< PRIVY_APP_ID>
115- fly secrets set HYPERGRAPH_CHAIN=< HYPERGRAPH_CHAIN>
116-
117- # deploy (ha=false to avoid starting multiple instances)
118- fly launch --ha=false
119-
120- # probably not necessary, but better safe than sorry
121- fly scale count 1
122- ```
123-
124- Resources:
125- - https://fly.io/docs/js/prisma/sqlite/
126- - https://programmingmylife.com/2023-11-06-using-sqlite-for-a-django-application-on-flyio.html
127- - https://community.fly.io/t/backup-and-restore-sqlite-db-to-server/21232/2
128-
129- ### Multi-region deployments
130-
131- As an alternative you might want to setup a lite-fs volume for multi-region deployments.
132-
133- Resources:
134- - https://github.com/epicweb-dev/node-sqlite-fly-tutorial/tree/main/steps
135- - https://www.epicweb.dev/tutorials/deploy-web-applications/multi-region-data-and-deployment/prepare-for-multi-region-data-with-litefs
136- - https://fly.io/docs/litefs/speedrun/
78+ ```
0 commit comments