A server which awaits webcam image uploads from gif-stream clients to generate .gifs and upload them to an AWS S3 bucket. Can be used together with HOFFNUNG 3000.
- Go environment
- AWS S3 instance
-
Make sure to set the
GO_INSTALL_PACKAGE_SPEC
variable to./cmd/...
to make sure Heroku builds both separate binaries.heroku config:set GO_INSTALL_PACKAGE_SPEC=./cmd/...
-
Configure the following environmental variables:
AWS_REGION=eu-central-1 AWS_ACCESS_KEY_ID= AWS_SECRET_ACCESS_KEY= AWS_BUCKET_NAME=
-
Install the
Heroku Scheduler
Add On and put up a job which executesworker
every 10 minutes. -
Activate both Dynos
web
andworker
(put them to "ON" under "Configure Dynos").
MIT