No Description

Alessio Davoli f13e959067 Please no 1 month ago
src c7c4c675b8 Rename filename 6 months ago
.env.example b184fb7cbb Update download hostname 6 months ago
.gitignore 267404235f Update gitignore 6 months ago
Dockerfile 9234273a39 Fix location of dockerfile 6 months ago f13e959067 Please no 1 month ago ebc14768f1 add send mail to prod yml 6 months ago
docker-compose.yml 73284a4a8a Update docker compose 6 months ago 3817ab60e0 Fix prod_deploy 6 months ago

Black Magic Tools

This repo contains a deno backend made for storing binary files received from an upload request.

There is only 1 route and that is the upload route. Unauthorized. It saves data inside SAVE_PATH environment variable.

Getting started

This project needs some environment variables set see .env.example for a complete list.

Starting dev server
cd src
deno task start
Run tests
cd src
deno task test

Production deploy

This is structured for having a folder like this:

├── docker-compose.yml
├── .env

and a cron process that runs that updates itself toghether with the docker compose.

GIT_REVISION must be the last variable of the .env file, so you can update it easily like this:

sed -i '$d' .env # delete last line
echo "GIT_REVISION=$(git rev-parse HEAD)" >> .env # re-add with the correct value