Skip to content

mesuutt/shortify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

58 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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