By npearson72
I’m having trouble deploying overall, but after tweaking various configs all day, deploying seems to be successful.
But when I go to my site, I just see the nginx page.
I try to restart unicorn and it always fails:
$cap production deploy:restart --trace
** Invoke production (first_time)
** Execute production
** Invoke load:defaults (first_time)
** Execute load:defaults
** Invoke rbenv:validate (first_time)
** Execute rbenv:validate
DEBUG[b052635f] Running /usr/bin/env [ ! -d /home/deploy/.rbenv/versions/2.1.2 ] on 104.131.198.171
DEBUG[b052635f] Command: [ ! -d /home/deploy/.rbenv/versions/2.1.2 ]
DEBUG[b052635f] Finished in 1.465 seconds with exit status 1 (failed).
** Invoke rbenv:map_bins (first_time)
** Execute rbenv:map_bins
** Invoke bundler:map_bins (first_time)
** Execute bundler:map_bins
** Invoke deploy:restart (first_time)
** Execute deploy:restart
** Invoke deploy:clear_cache (first_time)
** Execute deploy:clear_cache
Any ideas?
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!
This question was answered by @kamaln7:
It’s trying to check if
/home/deploy/.rbenv/versions/2.1.2exists and it looks like it doesn’t.Make sure you’ve install Ruby v2.1.2 using rbenv:
rbenv install 2.1.2
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.