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

Problem with run_locally when :user being set in role #89

Open
netmaniac opened this issue Nov 3, 2024 · 0 comments
Open

Problem with run_locally when :user being set in role #89

netmaniac opened this issue Nov 3, 2024 · 0 comments

Comments

@netmaniac
Copy link

I try to use gem capistrano-local-precompile to lower memory requirements on staging.

When role server is being defined like user@host or option :user is being used run_locally tries to use rvm-auto.sh. And of course it fails.

So when role is

role :web, 'hostname.example.com'

run_locally is being run on dev machnie.

role :web, '[email protected]'

Then run_locally tries to call '/home/username/application_name/rvm1scripts/rvm-auto.sh'. When I add user with username on dev machine and create rvm-auto.sh in proper location - it is being run and do it's job, however problems with file ownership and other makes it not suitable solution.

How to run locally tasks when local user is different than on server?

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