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

db:migrate not working on rake #31

Open
bpdarlyn opened this issue Nov 7, 2017 · 1 comment
Open

db:migrate not working on rake #31

bpdarlyn opened this issue Nov 7, 2017 · 1 comment

Comments

@bpdarlyn
Copy link

bpdarlyn commented Nov 7, 2017

I need make a migration on a task, but looking the errors is because the comand is executed on other directory for example :

Starting task 'Rake' of type 'com.alienfast.bamboozled.ruby.bamboozled-ruby-plugin:task.rake'
Beginning to execute external process for build 'invenrory-ci - Test-Inventory - Default Job #16 (IN-TES-JOB1-16)'\n ... running command line: \n/home/bpdarlyn/.rvm/rubies/ruby-2.3.1/bin/ruby /home/bpdarlyn/.rvm/gems/ruby-2.3.1@inventory-ci/bin/bundle exec rake db:migrate\n ... in: /home/bpdarlyn/bamboo/xml-data/build-dir/IN-TES-JOB1\
Could not locate Gemfile or .bundle/ directory
simple	06-Nov-2017 22:32:13	Failing task since return code of [/home/bpdarlyn/.rvm/rubies/ruby-2.3.1/bin/ruby /home/bpdarlyn/.rvm/gems/ruby-2.3.1@inventory-ci/bin/bundle exec rake db:migrate] was 10 while expected 0

now It command want execute on directory
/home/bpdarlyn/bamboo/xml-data/build-dir/IN-TES-JOB1\
bundle exec rake db:migrate
but her there is not project rails obviously

I want than execute it command on other directory because there is not a project rails on builder directory my project rails is on :
/home/bpdarlyn/projects/inventory-ci
rake db:migrate

@drscream
Copy link
Owner

drscream commented Feb 9, 2018

Wouldn't it be possible to specify the Rakefile in the Rake task it self or the Working directory?

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

2 participants