mina-deploy / mina

Blazing fast deployer and server automation tool
https://rubygems.org/gems/mina
Other
4.35k stars 490 forks source link

Rails doesn't recognize my project #514

Closed davidbenton closed 7 years ago

davidbenton commented 7 years ago

I have successfully deployed my project using Mina, but I'm having some issues. Running mina console results in rails' default output:

Usage: rails new APP_PATH [options]

Options: -r, [--ruby=PATH] # Path to the Ruby binary of your choice

Default: /usr/bin/ruby

-m, [--template=TEMPLATE] # Path to some application template (can be a filesystem path or URL) [...]

Manually running bundle exec rails c (or any rails command) on the server gets me the same.

Also, mina-whenever updates my crontab, but instead of expected ... rails runner ... I am seeing lines like ... script/runner ... which is Whenever gem's default when it can't find the correct bins.

So, why isn't my Mina-deployed site recognized as a rails project? Should the bin directory be in the project root, as usual? (It's not.)

I'm using:

davidbenton commented 7 years ago

This is a project that was upgraded from Rails 3. I did not realize that the /bin directory should be version controlled in Rails 4. To resolve, remove /bin from .gitignore, and commit files to repo.