Name: plinky
Owner: Raspberry Pi Foundation
Description: Python Link Redirection.
Created: 2015-06-15 22:38:27.0
Updated: 2018-04-04 14:44:59.0
Pushed: 2018-04-04 14:44:58.0
Homepage: null
Size: 213
Language: Python
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
A Python base link shorterner that couldn't be more stupid
For local testing, create a .env file in the root of your application. Within that file you'll want the following environment variables…
TCUT_FILE = ./shorturls/example_shorturls.yaml
ENT_WRITE_KEY=your_key_goes_here
The yaml file containing your shorturls needs to be set up. If you don't want to use Segment.io to track events you don't need to set up the Segment write key.
For deployment, you'll want to set these environment variables on the host machine.
I use foreman
to run my webserver. If you want to see debug message then do this…
foreman run python plinky.py
… as this will load the environment.
To run it as Heroku would, run with the following command…
foreman start
There is plenty that could be improved. Please raise issues in GitHub if you have suggestions. https://github.com/martinpeck/plinky/issues