Clone this wiki locally
Follow these instructions to install it in your own server:
git clone git://github.com/akosma/cortito.git
cp config/database.yml.sample config/database.yml
- Edit the "production" section with the parameters of your own database
cp config/config.yml.sample config/config.yml
- Enter your company name and URL.
rake db:migrate RAILS_ENV=”production”
- Optionally, you can modify the “public/termsofservice.html” and “public/privacy.html” files to follow your own company’s legal requirements.
touch tmp/restart.txt(if you are using Phusion Passenger)
Cortito features a small, straightforward REST API: a POST request to the root of the application generates a new shortened URL from the one passed as parameter. The response is the shortened URL, including the base server URL (for example, “http://akos.ma/abc123”)
- Supports custom and automatic hashes;
- Simple REST API to be used from other programs;
Cortito © 2009 - 2011 Adrian Kosmaczewski. All Rights Reserved.