0% found this document useful (0 votes)
39 views

Spend 2 Hours Trying Random Stackoverflow Suggestions

The document describes the steps taken to deploy a Rails application to an AWS EC2 instance. It involves installing Rails locally, creating a new Rails project, running the development server, deploying an EC2 instance using the AWS Console, and attempting to install Rails on the instance which results in an error.

Uploaded by

meh3re
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
39 views

Spend 2 Hours Trying Random Stackoverflow Suggestions

The document describes the steps taken to deploy a Rails application to an AWS EC2 instance. It involves installing Rails locally, creating a new Rails project, running the development server, deploying an EC2 instance using the AWS Console, and attempting to install Rails on the instance which results in an error.

Uploaded by

meh3re
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 13

(Spend 2 hours trying random

StackOverflow suggestions)
> gem install rails
> gem install rails
...
Success!
Finally!
> rails new my-project
> cd my-project
> rails start
> rails new my-project
> cd my-project
> rails start

/source/my-project/bin/spring:11:in `<top (required)>':


undefined method `path_separator' for Gem:Module
(NoMethodError)
from bin/rails:3:in `load'
from bin/rails:3:in `<main>'
Eventually, you get it working
Now you have to deploy your
Rails app in production
You use the AWS Console to
deploy an EC2 instance
> ssh [email protected]

__| __|_ )
_| ( / Amazon Linux AMI
___|\___|___|

[ec2-user@ip-172-31-61-204 ~]$ gem install rails


> ssh [email protected]

__| __|_ )
_| ( / Amazon Linux AMI
___|\___|___|

[ec2-user@ip-172-31-61-204 ~]$ gem install rails


ERROR: Error installing rails:
ERROR: Failed to build gem native extension.

/usr/bin/ruby1.9.1 extconf.rb

You might also like