Skip to content
This repository has been archived by the owner on Nov 11, 2022. It is now read-only.

TheSwanFactory/instaswan

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

78 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

instaswan

Instaswan is a Ruby on Rails clone developed during a training exercise for the Firehose code school.

Technologies

  • Rails apps
  • Ruby on Rails 5.0 pre-release
  • Heroku
  • Puma
  • S3

Tutorials

Note: The default Heroku instructions for S3 uploads are incorrect. You need to specify your exact region, and setup a Bucket Policy:

{
	"Version": "2008-10-17",
	"Statement": [
		{
			"Sid": "AllowFileUpload",
			"Effect": "Allow",
			"Principal": {
				"AWS": "arn:aws:iam::XXXXXXXX:user/instaswan"
			},
			"Action": [
				"s3:PutObject",
				"s3:PutObjectAcl"
			],
			"Resource": [
				"arn:aws:s3:::instaswan-dev",
				"arn:aws:s3:::instaswan-dev/*"
			]
		}
	]
}