|
1 month ago | |
---|---|---|
src | 6 months ago | |
.env.example | 6 months ago | |
.gitignore | 6 months ago | |
Dockerfile | 6 months ago | |
README.md | 1 month ago | |
docker-compose.prod.yml | 6 months ago | |
docker-compose.yml | 6 months ago | |
prod_deploy.sh | 6 months ago |
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.
This project needs some environment variables set see .env.example for a complete list.
cd src
deno task start
cd src
deno task test
This is structured for having a folder like this:
├── docker-compose.yml
├── .env
└── pull.sh
and a cron process that runs pull.sh
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