-
Notifications
You must be signed in to change notification settings - Fork 489
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
Mina - Foreman - Bundle problem #257
Comments
You are running foreman as sudo, can you please add this to your deploy.rb file and try to deploy again?
|
@gabskoro Looks like, it tried w/o sudo it worked but interestingly another error appeared. Here is the foreman_sudo, false output:
|
Where do you call foreman:export? You need to call it in the launch block. |
@gabskoro Yes, called "foreman:export" and on launch "foreman:restart" So, It's working but still not correctly. This is interesting, why my ".env" file contents including? Do you have any idea?
|
What do you mean with "why my ".env" file contents including?", can you explain it? :) |
@gabskoro I mean in my project folder. I have a .env file. So, while deployig, mina foreman generates upstart files and includes .env contents in. |
Hmm, really don't know. Have you tried it without .env file, maybe it's a problem between .env and foreman. |
@gabskoro yes, tried with removing .env, so it's working as expected, it's a bug I guess. |
I feel like there are still bugs with the foreman module. I encountered a lot of problems from closed issues while trying to do the first deploy (e.g. current symlink broken and folder not yet existing -> Also, @gabskoro what you say is differerent from the documentation where |
I'm using ruby 2.1.5 mri, and mina (0.3.1). rbenv 0.4.0-129-g7e0e85b, and rbenvsudo plugin.
But cannot deployed properly, foreman cannot initalize bundler. What is the problem in here?
Here is the mina verbose output;
Mina trace output
/etc/sudoers
root ALL=(ALL:ALL) ALL
deployer ALL=(ALL:ALL) NOPASSWD:ALL
~/.bashrc
export PATH="$home/.rbenv/bin:$PATH"
export PATH=
/.rbenv/shims:/.rbenv/bin:"$PATH"eval "$(rbenv init -)"
export RAILS_ENV=production
/root/.bashrc
Same as ~/.bashrc
The text was updated successfully, but these errors were encountered: