fix shard.yml
Docker / build (push) Has been cancelled Details

This commit is contained in:
Chris W 2024-01-07 12:00:30 -07:00
parent 403268638b
commit 2dfb5ba45d
3 changed files with 10 additions and 6 deletions

View File

@ -20,22 +20,26 @@ Some features have also yet to be implemented. They will be coming in the near f
Installation requires [Crystal](https://crystal-lang.org/) and Postgres. Other databases might be supported in the future. Installation requires [Crystal](https://crystal-lang.org/) and Postgres. Other databases might be supported in the future.
Clone this repo: Clone this repo:
```bash ```bash
git clone https://github.com/watzon/paste69 git clone https://github.com/watzon/paste69
``` ```
Install dependencies: Install dependencies:
```bash ```bash
shards install shards install
``` ```
Copy and modify the config file: Copy and modify the config file:
```bash ```bash
cp config/config.example.yml config/config.yml cp config/config.example.yml config/config.yml
vim config/config.yml vim config/config.yml
``` ```
Build the executables, migrate the database, and run the server: Build the executables, migrate the database, and run the server:
```bash ```bash
shards build shards build
./bin/cli db:migrate # this assumes the dabase exists, if not run db:create first ./bin/cli db:migrate # this assumes the dabase exists, if not run db:create first
@ -45,12 +49,14 @@ shards build
### Using Docker ### Using Docker
If you want, you can build the Docker container yourself locally: If you want, you can build the Docker container yourself locally:
```bash ```bash
docker build -v ./uploads:/app/uploads --tag paste69 ./docker docker build -v ./uploads:/app/uploads --tag paste69 ./docker
docker run -d -p 8080:8080 paste69 docker run -d -p 8080:8080 paste69
``` ```
Or, you can use the hosted version available through ghcr: Or, you can use the hosted version available through ghcr:
```bash ```bash
docker pull ghcr.io/watzon/paste69:main docker pull ghcr.io/watzon/paste69:main
docker run -d -p 8080:8080 ghcr.io/watzon/paste69:main docker run -d -p 8080:8080 ghcr.io/watzon/paste69:main
@ -98,7 +104,6 @@ The following table contains all available configuration options, their default
| `vscan.ignore` | _too long_ | `VSCAN.IGNORE` | Mime types for which to ignore virus scanning | | `vscan.ignore` | _too long_ | `VSCAN.IGNORE` | Mime types for which to ignore virus scanning |
| `url_alphabet` | `"01234567890abcdef..."` | `URL_ALPHABET` | Alphabet string to use for shortened URL creation | | `url_alphabet` | `"01234567890abcdef..."` | `URL_ALPHABET` | Alphabet string to use for shortened URL creation |
### Custom Templates ### Custom Templates
Paste69 supports custom templates, which can be used to override the default templates. To do this, simply create a directory somewhere and copy the default templates from [src/templates](src/templates) into it. For example: Paste69 supports custom templates, which can be used to override the default templates. To do this, simply create a directory somewhere and copy the default templates from [src/templates](src/templates) into it. For example:

View File

@ -54,8 +54,8 @@ shards:
version: 0.8.2 version: 0.8.2
crecto: crecto:
path: ../crecto git: https://github.com/crecto/crecto.git
version: 0.12.1 version: 0.12.1+git.commit.b645ea55414bbf8f7ee6bd91c3298fd0ed50a26c
crinja: crinja:
git: https://github.com/straight-shoota/crinja.git git: https://github.com/straight-shoota/crinja.git

View File

@ -17,9 +17,8 @@ dependencies:
crinja: crinja:
github: straight-shoota/crinja github: straight-shoota/crinja
crecto: crecto:
# github: Crecto/crecto github: Crecto/crecto
# branch: master branch: master
path: ../crecto
pg: pg:
github: will/crystal-pg github: will/crystal-pg
version: ~> 0.28.0 version: ~> 0.28.0