Skip to content
Branch: master
Go to file
Code

Latest commit

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
rel
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Shortify

Yet another URL shortener written in Elixir.

Running shortify locally

  • Set DATABASE_URL environment variable with pool size

postgres://username:password@db_host:5432/shortify_db?pool_size=10

Building and deploying release with Docker

Building image
docker build -t shortify .
Running container
docker run --rm \
    -p 4000:4000 \
    -p 4001:4001 \
    -e DATABASE_URL="postgres://postgres:pass@pgdb:5432/shortify_db?pool_size=10" \
    -e WEB_BASE_URL="http://mydomain.com" \
    -it shortify
  • 4000 port listening for web and 4001 for API by default.


License : MIT

You can’t perform that action at this time.