Activity
Oh! That's an interesting one. It has happened to me before but that definitely is an obscure one. I'm glad you got it figured out!
Awesome!! :)
One thing is to check and make sure your config points to the right directory. It definitely has happened to me before, but it is almost always a case of either reading the wrong config or the config pointing to the wrong folder.
One thing (and I updated the line) is that it should be perform -t production_backup
to match the name of the backup that you created earlier.
That should be it I imagine.
Sometimes having failed commands is good. It occasionally checks to see if it needs to create a directory like this one so it fails because it already exists which is totally okay.
I've had times where I went through everything and I couldn't find it so I ended up deleting all the files and starting from scratch so I know the feeling well. ;-)
Make sure the file is saved, but that's all you should need to do. You can try doing a project wide search in your text editor to find "example.com". That should point you to it.
Check your config/deploy/production.rb file to make sure it doesn't have example.com in it. I would guess that's where it is coming from. Swap that with your domain or IP and you should be good.
When you use mysql from the command line, you must specify your user and tell it you will type in a password:
mysql -u root -p
It should be the root user by default. Test it with this command and then put those credentials in your database.yml under production.
I don't mind at all Jakub. Let me know if there's anything I can help with.
Thanks for sharing Nick!
Awesome stuff. Thanks for sharing Daniel.
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.
The Gemfile is in the top folder in your Rails application.
Awesome! glad you got that figured out and thanks for sharing. I'll be sure to note this for the future.
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!
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.
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.
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.