grails cloud-hosting recommendation -


i'm looking cloud-hosting grails app. in past, i've tried several including cloudfoundry, jelastic, appfog, never deploy app. app needs:

  • mysql database
  • file system access in order store searchable plugin index files , images uploaded users

i'll using site qa, not concerned performance. i'd simple possible deploy app, , i'd pay little possible hosting.

i've tried using cloudfoundry grails plugin deploy cloudfoundry, without success.

i have hosted grails based websites on amazon ec2. reduce cost, used small reserved instance. think it's ok use amazon ec2 ami temporary files such searchable index files since can re-index if ami crashes.

to store user images, used amazon s3 using grails aws sdk plugin (http://grails.org/plugin/aws-sdk). easy upload files s3 using amazon sdk http://blanq.github.io/grails-aws/1.2.12.1/index.html -

to upload file public read permissions.

amazonwebservice.s3.putobject(new putobjectrequest('some-grails-bucket',  'somepath/somekey.jpg', new  file('/users/ben/desktop/photo.jpg')).withcannedacl( cannedaccesscontrollist.publicread ) ) 

download file.

amazonwebservice.s3.getobject(new getobjectrequest('some-grails-bucket',  'somepath/somekey.jpg'), new file('/users/ben/downloads/photo.jpg')) 

delete file.

amazonwebservice.s3.deleteobject('some-grails-bucket', 'somepath/somekey.jpg') 

i hope helps.


Comments

Popular posts from this blog

Perl - how to grep a block of text from a file -

delphi - How to remove all the grips on a coolbar if I have several coolbands? -

javascript - Animating array of divs; only the final element is modified -