Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Thanks , but the first link´s are incomplete. And this is for centos right ,nor for debian or ubunto servers
Great guide. Only one thing that wasn’t pointed out in the guide: after installing ruby 2.1.0, I had to manually set rvm use 2.1.0 --default I ketp getting ‘gem command not found’ until I did that.
Other than that, everything worked out great! Thanks!
Thank you for this man. Now very hard find fresh article on Fedora and Centos. Maybe someone get this porblem in deploy: Permission denied (publickey) fatal: The remote end hung up unexpectedly I change forward_agent on true in this place in deploy.rb. set :ssh_options, { forward_agent: true, auth_methods: %w(password), password: ‘SD2431pd’, user: ‘deployer’, } it’s solve this.
I’ve read that its not a good practice to put your user’s password in your configuration files? Isn’t there a way to do this with ssh keys instead? I’ve been trying but haven’t had any luck. I really don’t want to put my server password in any code files.
I found what I needed finally: http://capistranorb.com/documentation/getting-started/authentication-and-authorisation/ - This explains how to setup an ssh key for your deployer user. So you’ll want to make sure that you can ssh in as deployer@ip as well by following that guide. Once you do that, you don’t have to put your deployer user’s password in your configuration file.
Note: If you are using CentOS 7.0, you’ll need to run
$ get http://dl.fedoraproject.org/pub/epel/beta/7/x86_64/epel-release-7-0.2.noarch.rpm $ rpm -ivh epel-release-7-0.2.noarch.rpm
rather than
$ sudo su -c ‘rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm’
The tutorial became quite unclear when I got to this section:
1. Preparing The Deployment Server 5. Configuring Nginx for Application Deployment
First, it’s unclear where you want me to define my default application root. Do you want it within server {…} section, or just within the http {…} section?
Secondly, you throw this into the comment section of some code (which I missed on the first pass):
Remember to create an Nginx management script by following the main Rails deployment article for CentOS linked at the beginning of this section.
You reference a link at the beginning of the article but I couldn’t find anything related to what you describe. Why not just show me how to do it?
Lastly, you say this is a 2-part tutorial but the first part is just repeated in the second part. You should really redo this tutorial.
A few errata:
CentOS 7 requires the following to access EPEL:
wget http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-2.noarch.rpm
rpm -ivh epel-release-7-2.noarch.rpm
You will need to trust the RVM GPG key before curl -L get.rvm.io | bash -s stable
Using --no-ri and --no-rdoc when installing rails makes the process quick (when it can otherwise stall indefinitely).
gem install bundler rails --no-ri --no-rdoc
I have followed this guide several times and I always end up with the problem of some users not having proper access to RVM and GEM which leaves me troubleshooting for a while before figuring it out.
I’ve started installing RVM as root and following the instructions that rvm gives. Hopefully this saves some headaches for other.
After running:
# curl -L get.rvm.io | bash -s stable
^^^ Careful to add the gpg2 key.
You will see this. following the instructions.
Creating group 'rvm'
Installing RVM to /usr/local/rvm/
Installation of RVM in /usr/local/rvm/ is almost complete:
* First you need to add all users that will be using rvm to 'rvm' group,
and logout - login again, anyone using rvm will be operating with `umask u=rwx,g=rwx,o=rx`.
* To start using RVM you need to run `source /etc/profile.d/rvm.sh`
in all your open shell windows, in rare cases you need to reopen all shell windows.