From 2dfb5ba45d53e403d448035819812db8ed12a039 Mon Sep 17 00:00:00 2001 From: Chris W Date: Sun, 7 Jan 2024 12:00:30 -0700 Subject: [PATCH] fix shard.yml --- README.md | 7 ++++++- shard.lock | 4 ++-- shard.yml | 5 ++--- 3 files changed, 10 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 8907022..b6531ea 100644 --- a/README.md +++ b/README.md @@ -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 @@ -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 @@ -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: diff --git a/shard.lock b/shard.lock index 77b96f1..b2599f7 100644 --- a/shard.lock +++ b/shard.lock @@ -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 diff --git a/shard.yml b/shard.yml index 0fc9928..2ba8d2a 100644 --- a/shard.yml +++ b/shard.yml @@ -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