Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sciencefidelity/newsletter
Newsletter API.
https://github.com/sciencefidelity/newsletter
Last synced: 4 days ago
JSON representation
Newsletter API.
- Host: GitHub
- URL: https://github.com/sciencefidelity/newsletter
- Owner: sciencefidelity
- Created: 2024-06-10T18:54:36.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2024-11-07T20:18:40.000Z (12 days ago)
- Last Synced: 2024-11-07T21:25:21.337Z (12 days ago)
- Language: Rust
- Homepage:
- Size: 302 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Newsletter
Newsletter API in Rust.
## Deploy
Deploy to Digital Ocean App Platform:
```shell
doctl apps create --spec spec.yaml
```Migrate database on Digital Ocean
```shell
DATABASE_URL= sqlx migrate run
```Update running app on Digital Ocean
```shell
# get the app id
doctl apps list# use the id to update the app
doctl apps update --spec spec.yaml
```## Migrations
Run migrations with no local Docker running run from project root:
```shell
./scripts/init_db.sh
```Run migrations with Docker already running set `SKIP_DOCKER` environment variable:
```shell
SKIP_DOCKER=true ./scripts/init_db.sh
```