title: Bundler won't find puma when deploying Rails 5 app
body: <p>Just FYI, this is the first time I'm deploying something on a production server. I went through this <a href="https://www.digitalocean.com/community/tutorials/how-to-deploy-a-rails-app-with-puma-and-nginx-on-ubuntu-14-04" rel="nofollow noreferrer">guide</a> as my server is also hosted on DO.</p>
  
  <p>The environment is pretty much the same - I'm using Ubuntu 14.04, Ruby 2.3.3 (rbenv) and rails 5.</p>
  
  <p>I followed everything step by step and I have gotten no error, however, now I'm getting a 502 bad gateway when accessing my public IP.</p>
  
  <p>I have noticed that for some reason after starting puma manager (sudo start puma-manager), the directory "shared/sockets/puma.sock" is not getting created.</p>
  
  <p>When I start puma manually by using -> RACK_ENV=production bundle exec puma -C config/puma.rb from my app directory, I get the following error:</p>
  
  <p>bundler: failed to load command: puma (/root/.rbenv/versions/2.3.3/bin/puma)
  Errno::ENOENT: No such file or directory - connect(2) for /root/belooga/shared/sockets/puma.sock</p>
  
  <p>Any idea of what I might be doing wrong? Should you need to see any file, please let me know and I'll provide anything that might be needed.</p>
  
  <p>Cheers!</p>
  
  <p>EDIT:</p>
  
  <p>I have double-checked all the paths in:</p>
  
  <ul>
  <li>myapp/config/puma.rb</li>
  <li>/etc/puma.conf</li>
  <li>/etc/nginx/sites-available/default</li>
  </ul>