Skip to content
This repository has been archived by the owner on Nov 13, 2024. It is now read-only.

Commit

Permalink
fix shard.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
watzon committed Jan 7, 2024
1 parent 4032686 commit 2dfb5ba
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Clone this repo:

```bash
git clone https://github.com/watzon/paste69
```

Install dependencies:

```bash
shards install
```

Copy and modify the config file:

```bash
cp config/config.example.yml config/config.yml
vim config/config.yml
```

Build the executables, migrate the database, and run the server:

```bash
shards build
./bin/cli db:migrate # this assumes the dabase exists, if not run db:create first
Expand All @@ -45,12 +49,14 @@ shards build
### Using Docker

If you want, you can build the Docker container yourself locally:

```bash
docker build -v ./uploads:/app/uploads --tag paste69 ./docker
docker run -d -p 8080:8080 paste69
```

Or, you can use the hosted version available through ghcr:

```bash
docker pull ghcr.io/watzon/paste69:main
docker run -d -p 8080:8080 ghcr.io/watzon/paste69:main
Expand Down Expand Up @@ -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 |
| `url_alphabet` | `"01234567890abcdef..."` | `URL_ALPHABET` | Alphabet string to use for shortened URL creation |


### 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:
Expand Down
4 changes: 2 additions & 2 deletions shard.lock
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ shards:
version: 0.8.2

crecto:
path: ../crecto
version: 0.12.1
git: https://github.com/crecto/crecto.git
version: 0.12.1+git.commit.b645ea55414bbf8f7ee6bd91c3298fd0ed50a26c

crinja:
git: https://github.com/straight-shoota/crinja.git
Expand Down
5 changes: 2 additions & 3 deletions shard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,8 @@ dependencies:
crinja:
github: straight-shoota/crinja
crecto:
# github: Crecto/crecto
# branch: master
path: ../crecto
github: Crecto/crecto
branch: master
pg:
github: will/crystal-pg
version: ~> 0.28.0
Expand Down

0 comments on commit 2dfb5ba

Please sign in to comment.