WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

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

@netmaniac

Description

@netmaniac

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions