Chris Oliver

Joined

290,710 Experience
86 Lessons Completed
298 Questions Solved

Activity

Posted in Deploy Ubuntu 14.04 Trusty Tahr Discussion

Thanks for sharing Nick!

Posted in Deploy Ubuntu 14.04 Trusty Tahr Discussion

Awesome stuff. Thanks for sharing Daniel.

Posted in Setup Ubuntu 14.04 Trusty Tahr Discussion

Hey Steve, this setup is primarily for development. On a production AMI on AWS you probably want to run a server like Passenger so that it can serve up the app on port 80. This tutorial might be more what you're looking for https://gorails.com/deploy/...

If you're wanting to do development on AWS though, you probably just need to open up port 3000 in your security group because I can bet the firewall is blocking it.

Posted in Deploy Ubuntu 14.04 Trusty Tahr Discussion

The Gemfile is in the top folder in your Rails application.

Posted in Deploy Ubuntu 14.04 Trusty Tahr Discussion

Awesome! glad you got that figured out and thanks for sharing. I'll be sure to note this for the future.

Posted in Deploy Ubuntu 14.04 Trusty Tahr Discussion

Sometimes people keep database.yml in their repository but then your production password is saved in your code repo so a lot of people choose not to do it that way.

Let me know if I can help out with any of the other issues!

Posted in Deploy Ubuntu 14.04 Trusty Tahr Discussion

Hey Daniel,

You'll need to manually create a database.yml file on your server. It's trying to link it but it hasn't been created yet. So you can ssh in and edit that file

nano /home/deploy/my_actual_app_name/shared/config/database.yml

and put in your database config for the server database that you just setup.

Good find! Thanks for sharing this.

Posted in Deploy Ubuntu 14.04 Trusty Tahr Discussion

Good to hear but sorry you had to rebuild! There's a link to the about page in the footer that has my email address on it if you need to get ahold of me in the future.

Posted in Deploy Ubuntu 14.04 Trusty Tahr Discussion

Dang. Well, one good practice is to always disable password authentication with SSH. http://askubuntu.com/questi...

I'll probably add this step into the tutorial tomorrow because that's no fun at all.

Posted in Deploy Ubuntu 14.04 Trusty Tahr Discussion

Hmm, looks like it's similar issue. One last suggestion from my server that I have running apache instead of Nginx (but still uses Passenger) is to use this for passenger_ruby:

passenger_ruby /usr/local/rvm/wrappers/ruby-2.1.2/ruby

It's possible the wrapper helps it load the proper version. This is one of the problems with rvm in the sense that it integrates almost too much with your environment causing it to be a headache to set up at times.

Posted in Deploy Ubuntu 14.04 Trusty Tahr Discussion

My bad. I misread. You're using rvm so that wouldn't help anyways. Try:

passenger_ruby /usr/local/bin/passenger_ruby;

Posted in Deploy Ubuntu 14.04 Trusty Tahr Discussion

Try changing it to passenger_ruby /home/deploy/.rbenv/shims/ruby; and restarting nginx to see what happens. I think pointing directly to that version of Ruby should work, but I've also always just pointed it to the shim.

Posted in Deploy Ubuntu 14.04 Trusty Tahr Discussion

Double check that you set your nginx passenger_ruby to point to RVM or Rbenv properly and that you set the global ruby version to 2.1.2.

Posted in Deploy Ubuntu 14.04 Trusty Tahr Discussion

Ouch! Did you have a short password?

Posted in Deploy Ubuntu 14.04 Trusty Tahr Discussion

You want to run sudo nano /etc/nginx/nginx.conf instead (not the /opt one).

You can see the file as your deploy user but you can't actually save changes. That's why you need sudo so that you can save your changes.

Posted in Deploy Ubuntu 14.04 Trusty Tahr Discussion

I think because that's not a command you run in your terminal but you need to add that to the file named Gemfile instead.

Thanks Rodrigo! Definitely a cleaner implementation because this way you're only adding fields.

Posted in Using Vagrant for Rails Development Discussion

This is going to setup a separate VM for each mainly for the purpose that everyone working on the project starts with a clean machine. If you don't run into any problems with your setup, you don't really need this. The trouble comes in when you need to share your machine setup with say 50 other developers. Then you need something like this so everyone can spin up a development environment without any trouble.

Posted in Setup Ubuntu 14.04 Trusty Tahr Discussion