https://github.com/jacob-ebey/litestream-remix
https://github.com/jacob-ebey/litestream-remix
Last synced: 10 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/jacob-ebey/litestream-remix
- Owner: jacob-ebey
- Created: 2022-02-22T10:26:50.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-02-23T14:55:38.000Z (over 4 years ago)
- Last Synced: 2025-04-01T20:12:51.365Z (about 1 year ago)
- Language: TypeScript
- Size: 292 KB
- Stars: 13
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Welcome to Remix!
- [Remix Docs](https://remix.run/docs)
## Fly Setup
1. [Install `flyctl`](https://fly.io/docs/getting-started/installing-flyctl/)
2. Sign up and log in to Fly
```sh
flyctl auth signup
```
3. Create Fly application. We don't want to deploy yet as we have to add volumes for SQLite.
```sh
flyctl launch --region ord --no-deploy
```
4. Add volumes to your app in two regions
```sh
flyctl volumes create --region ord --size 1 data
flyctl volumes create --region hkg --size 1 data
```
5. Scale your app to match the number of volumes you have added
```sh
flyctl scale count 2
```
6. Deploy your app from the CLI the first time
```sh
flyctl deploy --remote-only
```
## Development
From your terminal:
```sh
npm run dev
```
This starts your app in development mode, rebuilding assets on file changes.
## Deployment
If you've followed the setup instructions already, all you need to do is run this:
```sh
npm run deploy
```
You can run `flyctl info` to get the url and ip address of your server.
Check out the [fly docs](https://fly.io/docs/getting-started/node/) for more information.