Unshorten is a little Sinatra app, which provides a way to expand short links.
These installation instructions use rvm as ruby provider. If you want to use rbenv or your system ruby, please refer to their specific documentation to know how to install ruby 2.4.
rvm get latest $ rvm install ruby-2.4.1 $ rvm use ruby-2.4.1@unshorten --create $ gem install bundler $ bundle install$
For testing it, you should just run:
bundle exec rake sinatra:start$
For production use, just pass the right environnement variable:
APP_ENV=production bundle exec rake sinatra:start$
To stop it, just enter
ctrl+C if you are in development mode or enter the following command if you are in production mode:
APP_ENV=production bundle exec rake sinatra:stop$