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

Could not install to path vendor/bundle because of an invalid symlink #535

Closed
folivi opened this issue Apr 16, 2017 · 4 comments
Closed

Comments

@folivi
Copy link

folivi commented Apr 16, 2017

Hi, I'm having an issue deploying
I'm on ruby 2.2.3
How can I fix it?

error:
Could not install to path vendor/bundle because of an invalid symlink. Remove
the symlink so the directory can be created.

task :deploy => :environment do
  on :before_hook do
    # Put things to run locally before ssh
  end
  deploy do
    # Put things that will set up an empty directory into a fully set-up
    # instance of your project.
    invoke :'git:clone'
    invoke :'deploy:link_shared_paths'
    invoke :'bundle:install'
    #invoke :'rails:db_load'
    #invoke :'load_db_schema'
    invoke :'rails:db_migrate'    
    invoke :'rails:assets_precompile'
    invoke :'deploy:cleanup'

    on :launch do      
      command "mkdir -p #{fetch(:deploy_to)}/#{fetch(:current_path)}/tmp/"
      command "touch #{fetch(:deploy_to)}/#{fetch(:current_path)}/tmp/restart.txt"
    end
  end
end
@anilmaurya
Copy link

I am also facing same issue.

This is related to invoke :'deploy:link_shared_paths' , Once I comment this task then mina deploy works.

@Manfred
Copy link

Manfred commented Jun 1, 2017

I assume this breaks because of a missing directory or file. Running mina setup solved the problem for me.

@d4be4st
Copy link
Member

d4be4st commented Sep 8, 2017

yes, you need to run setup to add new shared folders

@d4be4st d4be4st closed this as completed Sep 8, 2017
@rubywarlock
Copy link

rubywarlock commented Nov 25, 2018

I solved it this way:

task :deploy do
  deploy do
    invoke :'rbenv:load'
    ...
  end
  ...
end

For rbenv.

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

5 participants