Join GitHub today
Fetching latest commit…
Cannot retrieve the latest commit at this time.
|Failed to load latest commit information.|
# A simple fast image uploader sinatra app using minimagick. # app uploads an image file save it to the public directory # creates a thumb file and save it to the public directory. # How to use it. # clone the rep # gem install bundler # bundle install, NOTE: make sure you have a valid imagemagick installed in your OS. # Run the app, rackup -p 4567 navigate to: localhost:4567/upload # TODO: Reconfigure the app to run with Phusion Passenger Deploying with Passenger: Example: You need to have Passenger Phusion installed, Apache 2 module. Need help? visit http://railsforum.com/viewtopic.php?id=29596 on Ubuntu 10.10 add a new virtual host setup, save it : /etc/apache2/sites-available/uploader <VirtualHost *:80> ServerName uploader.sinatra.local DocumentRoot /home/<username>/uploader/public RackBaseURI /uploader </VirtualHost> enable your virtual host: sudo a2dissite default sudo a2ensite uploader restart apache: sudo /etc/init.d/apache2 restart create your virtualhost by adding the following to /etc/hosts/ 18.104.22.168 localhost.localdomain localhost uploader.sinatra.local visit the app, http://uploader.sinatra.local TODO: - Add some fake policies, access permissions to the uploaded files. - Robust the App, make it quicker, at the moment, Mini Magick is much faster than rmagick with memory handling. Looking for alternative!!