Difference between revisions of "Asset hosting on S3"

From diaspora* project wiki
Jump to: navigation, search
(Created page with "=== Diaspora Comes With Support For Amazon S3 Built In. === You can use Amazon S3 (Simple Storage Service) To Host Many Parts Of Your Pod. This includes the static assets tha...")
 
Line 10: Line 10:
 
export AWS_SECRET_ACCESS_KEY=xxxx
 
export AWS_SECRET_ACCESS_KEY=xxxx
 
export FOG_DIRECTORY=xxxx </pre>
 
export FOG_DIRECTORY=xxxx </pre>
 +
 +
[[Category:Github transfer done]]

Revision as of 21:27, 25 June 2013

Diaspora Comes With Support For Amazon S3 Built In.

You can use Amazon S3 (Simple Storage Service) To Host Many Parts Of Your Pod. This includes the static assets that are created using the assets:precompile rake task built into Diaspora, to do this Diaspora uses the asset-sync gem. You can also store user profile pictures on Amazon S3.

Storing Static Assets On Amazon S3.

Firstly, cd Into Your Diaspora Code Folder Using The Command Line. Then Run The Following Commands (For A NON Heroku Setup) Replacing 'xxxx' For The Piece Of Info From Your S3 Account:

export AWS_ACCESS_KEY_ID=xxxx   
export AWS_SECRET_ACCESS_KEY=xxxx
export FOG_DIRECTORY=xxxx