Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

spacely

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 app
Octocat-spinner-32 config
Octocat-spinner-32 db
Octocat-spinner-32 doc
Octocat-spinner-32 lib
Octocat-spinner-32 log
Octocat-spinner-32 public
Octocat-spinner-32 script
Octocat-spinner-32 test
Octocat-spinner-32 .gitignore
Octocat-spinner-32 Gemfile
Octocat-spinner-32 README.md
Octocat-spinner-32 Rakefile
Octocat-spinner-32 config.ru
Octocat-spinner-32 manifest.yml
Octocat-spinner-32 readm.txt
README.md

Spacely

IMAGE UPLOADER with drag and drop

This is a simple image uploader with the following features

  • Upload images by by drag and drop
  • Upload images from remote url
  • Upload images from the computer

Spacely is rails 3.2.6 with Mysql database. Additional gems that were used to handle file uploads are carrierwave, fog and Rmagic. The app is powered by backbone.js in the forntend.

Deploying the app on Cloud Foundry

Fork the project and then

git clone git@github.com:<your_name>/spacely.git spacely
cd spacely
bundle install;bundle package
rake assets:precompile

The images are stored in s3. The secret, id and bucket name are to be set after deploying the app.

To deploy the app

$ vmc push --runtime ruby19 --nostart
Would you like to deploy from the current directory? [Yn]: y
Application Name: spacely
Detected a Rails Application, is this correct? [Yn]: y
Application Deployed URL [contributingcod.cloudfoundry.com]: y
Memory reservation (128M, 256M, 512M, 1G, 2G) [256M]: 256M
How many instances? [1]: 1
Create services to bind to 'spacely'? [yN]: y
1: mongodb
2: mysql
3: postgresql
4: rabbitmq
5: redis
What kind of service?: 2
Specify the name of the service [mysql-3e25d]: mydb
Create another? [yN]: n
Would you like to save this configuration? [yN]: y
Manifest written to manifest.yml.
Creating Application: OK
Creating Service [mydb]: OK
Binding Service [mydb]: OK
Uploading Application:
  Checking for available resources: OK
  Processing resources: OK
  Packing application: OK
  Uploading (558K): OK   
Push Status: OK

The environmental variables are set as follows

vmc env-add spacely aws_access_key_id='aws key id'
vmc env-add spacely aws_secret_access_key = 'aws secret'
vmc env-add spacely fog_directory = 'aws s3 bucket name'

Finally to start your app on cloudfoundry

vmc app start spacely

Visit spacely.cloudfoundry.com to view your web application

PS: The app name is subject to availability so you may not get the same app name as 'spacely' instead give your own app names.

Something went wrong with that request. Please try again.