-
Notifications
You must be signed in to change notification settings - Fork 44
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
Should use 'bundle exec passenger' #10
Comments
I have the same problem with |
Please upgrade to 0.0.5 and pay special attention to https://github.com/capistrano/passenger#note-for-rvm-users and let me know the results please. Are you using capistrano-rvm? |
I'm using rbenv and I have the same problem:
Downgrading to 0.0.4 fixes the issue:
|
Still the same. I don't see anything in |
@davidmles The issue with capistrano-passenger v0.0.5 is that it makes an assumption that if you're using rbenv, you installed passenger via rbenv. There's a discussion going on in #9 about this (from here down). We already addressed a similar issue with RVM. PR's welcome. @batamire Are you installing passenger during the deployment? This gem assumes it's already installed. |
@betesh Yes, I am installing it as part of capistrano/bundler task. It gets installed to workaround in
so the gems are installed in rvm's ruby@gemset instead of shared/bundle offtopic Shouldn't |
@batamire I assumed nobody would ever do that because you then need to update your Apache / nginx config manually after running As for using deploy_to instead of current_path, I think you are right but the original contributor wrote it that way and I left it as is. Unless you are deploying multiple projects to the same |
I'm using passenger-standalone (multiple apps on server) with one reverse proxy - nginx. So I try to avoid having passenger gem in multiple locations (bundle and gemset). No2: If I don't explicitly start passenger with |
If you are running multiple instances of passenger, that is definitely beyond the scope of this gem. IMO it does not make sense to be running multiple instances. Passenger is specifically designed for high-performance multi-threading within a single instance, so I suspect multiple instances will just degrade performance. Please address that issue first before we continue this conversation. |
Sorry for lack of clarity: I'm running multiple apps, one passenger instance per app. Each app has it's own /home/username and each passenger-standalone is run as different user. It is possible for a user to have multiple apps in his home directory, thus each running a single passenger instance (in future). Running |
@batamire It sounds like the obstacle is with the |
Yep! And it was offtopic ;) What really confuses me is using |
So is this issue ready to be closed? If not, please give me a short summary of how this gem could handle your situation. |
I edited my previous answer, that's all. Thanks. |
Correct -- This gem assumes passenger is installed outside the bundle (we try to call |
I need |
@zjx20 We added a lot of complexity in order to try to handle every situation by detecting automatically instead of forcing the user to configure. It seems that there are still a lot of situations we haven't considered. I do want to be able to handle all situations, so maybe in a few days I will have time to add some code to support restarting standalone passenger. |
I think the best way is |
@zjx20 Use capistrano-passenger v0.0.2 if that's all you want. Later versions were designed to support passenger v5. If you are happy on v4, there's no reason to upgrade capistrano-passenger. |
The version check also doesn't seem to take into account environments that run Passenger from the system version of Ruby, like specified in the official Passenger docs. To work around this, install the same version of Passenger to your local version of Ruby as the one you're running under the system in order to pass version checking. Maybe if |
I had passenger installed system-wide using I didn't like the idea of giving my set :passenger_restart_with_touch, true |
passenger stderr: /home/xxx/.rvm/scripts/set: line 19: exec: passenger: not found
Using
capistrano/bundler
my bundled gems get installed to/home/xxx/apps/xxx/shared/bundle/ruby/2.2.0/gems/passenger-5.0.4
and are not ingem list
The text was updated successfully, but these errors were encountered: