Answer the question
In order to leave comments, you need to log in
What causes rails redeployment error on vps?
Hello!
I deploy the application on VPS ubuntu 14.04, the error Could not locate Gemfile crashes. (after cap production deploy but not immediately)
I can't figure out what's wrong.
I deploy according to the video tutorial - https://www.youtube.com/watch?v=OIyAGAA6m94
.gitignor content:
# See https://help.github.com/articles/ignoring-files for more about ignoring files.
#
# If you find yourself ignoring temporary files generated by your text editor
# or operating system, you probably want to add a global ignore instead:
# git config --global core.excludesfile '~/.gitignore_global'
# Ignore bundler config.
/.bundle
# Ignore all logfiles and tempfiles.
/log/*
/tmp/*
!/log/.keep
!/tmp/.keep
# Ignore Byebug command history file.
.byebug_history
/config/database.production.yml
/config/secrets.production.yml
Answer the question
In order to leave comments, you need to log in
Problem solved. As it became clear to me, the password from the database was simply incorrectly specified.
Bundle tries to find the Gemfile and install all dependencies at the address given after --path, but does not find it. Those. there is no Gemfile at that address. This is the reason for the error.
You have several options:
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question