Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rails doesn't recognize my project #514

Closed
davidbenton opened this issue Feb 3, 2017 · 1 comment
Closed

Rails doesn't recognize my project #514

davidbenton opened this issue Feb 3, 2017 · 1 comment

Comments

@davidbenton
Copy link

davidbenton commented Feb 3, 2017

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:

  • Rails 4.2.7.1
  • Mina 1.0.6
  • Ubuntu 16.04 on Digitalocean
@davidbenton
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant