I've been using Rails for a couple of months now and made a small app that I'm trying to deploy with Capistrano. The problem is that when I run
$ cap production deploy
the deployment appears to run correctly except for the following 3 errors:
DEBUG [764d7f01] Running /usr/bin/env [ -L /var/www/rally_app/releases/20150513103829/public/assets ] as [email protected] DEBUG [764d7f01] Command: [ -L /var/www/rally_app/releases/20150513103829/public/assets ] DEBUG [764d7f01] Finished in 3.347 seconds with exit status 1 (failed). DEBUG [929898d3] Running /usr/bin/env [ -d /var/www/rally_app/releases/20150513103829/public/assets ] as [email protected] DEBUG [929898d3] Command: [ -d /var/www/rally_app/releases/20150513103829/public/assets ] DEBUG [929898d3] Finished in 4.065 seconds with exit status 1 (failed). DEBUG [8917ed02] Running /usr/bin/env ls /var/www/rally_app/releases/20150513103829/public/assets/.sprockets-manifest* as [email protected] DEBUG [8917ed02] Command: cd /var/www/rally_app/releases/20150513103829 && ( RBENV_ROOT=~/.rbenv RBENV_VERSION=2.2.1 /usr/bin/env ls /var/www/rally_app/releases/20150513103829/public/assets/.sprockets-manifest* ) DEBUG [8917ed02] ls: cannot access /var/www/rally_app/releases/20150513103829/public/assets/.sprockets-manifest*: No such file or directory DEBUG [8917ed02] Finished in 3.716 seconds with exit status 2 (failed).
Also, it appears Bundler doesn't run properly, because even though the App is supposed to use PostgreSQL in production, Passenger gives an error about sqlite3 stating:
Specified 'sqlite3' for database adapter, but the gem is not loaded. Add `gem 'sqlite3'` to your Gemfile (and ensure its version is at the minimum required by ActiveRecord). (Gem::LoadError) /var/www/rally_app/shared/bundle/ruby/2.2.0/gems/activerecord
I've changed the RailsEnv to development only temporarily to view these logs. If it will help to post more information from the Phusion Passenger logs, I am happy to post. Please let me know.
I'm Linux server admin savvy but I'm a complete Rails/Passenger/rbenv/Capistrano noob, so please consider this in your replies. :)
Thanks in advance for any help.