Using shine without Amazon S3

25 views
Skip to first unread message

Tom

unread,
Jan 24, 2010, 7:48:29 PM1/24/10
to Shine
I am just testing Shine out atm but it seems to require Amazon S3? I
upload my app and it all works but then the file isn't where it should
be and it won't download, any suggestions?

Jeff Schilling

unread,
Jan 24, 2010, 8:05:55 PM1/24/10
to shin...@googlegroups.com
Where does it end up?

I've patched my shine install for prepending / before the path in the
s3 bucket.

If that's your issue, I'll dig up the patch

-jeff

Jeff Schilling
je...@manicwave.com
http://manicwave.com

Tom

unread,
Jan 25, 2010, 10:28:46 AM1/25/10
to Shine
I basically don't want to use S3 at all, I just want to use Shine as
usual but stored on the server.

On Jan 25, 1:05 am, Jeff Schilling <jeff.schill...@gmail.com> wrote:
> Where does it end up?
>
> I've patched my shine install for prepending / before the path in the  
> s3 bucket.
>
> If that's your issue,  I'll dig up the patch
>
> -jeff
>
> Jeff Schilling

> j...@manicwave.comhttp://manicwave.com

Jeff Schilling

unread,
Jan 25, 2010, 9:36:06 PM1/25/10
to shin...@googlegroups.com
Tom,

The only way to pull that off currently is to tweak the source.

In the top block of version-new.php, theres some code that calls out to send the file to S3.

$s3 = new S3($app->s3key, $app->s3pkey);
$s3->uploadFile($app->s3bucket, $object, $_FILES['file']['tmp_name'], true);
$v->insert();

I would imagine that you could comment those out. If you set the S3 path to the prefix to your download location, everything should still work (although I haven't tested it)

Good luck.

-jeff

Tom

unread,
Jan 30, 2010, 6:27:35 PM1/30/10
to Shine
All that did was stop the S3 upload but it doesn't store the file
anywhere now. It uploads into the PHP temp folder and then thats it.

Jeff Schilling

unread,
Jan 30, 2010, 10:26:30 PM1/30/10
to shin...@googlegroups.com
Tom,

You've honed in on the area that needs some tweaking.

I would suggest forking the code and adding some logic to deposit the file where you want in and update the v->url field appropriately.

I've been tweaking shine for my setup for a while now - the code is clean and pretty easy to follow.

Good luck.

-jeff

Reply all
Reply to author
Forward
0 new messages