Skip to content

RVM is not a function #262

@harryworld

Description

@harryworld

I have setup the mina to a new server on 1and1.fr Ubuntu 14.04 dedicated server, with rvm 1.26.4 and ruby 2.1.5, if I logged in as ubuntu user, I can run rvm successfully, but if I use mina setup, it tells me the following error message on not using interactive shell.

Is there anyway to mina using login shell by default? Or switch to login shell after logging in?

require 'mina/rvm'
set :user, 'ubuntu'

task :environment do
  invoke :'rvm:use[ruby-2.1.5]'
end
You need to change your terminal emulator preferences to allow login shell.
       Sometimes it is required to use `/bin/bash --login` as the command.
       Please visit https://rvm.io/integration/gnome-terminal/ for an example.

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