Answer the question
In order to leave comments, you need to log in
Why does an error occur when deploying via deploy.sh?
Good afternoon. Help please with a problem. There is a project deployment script in Ruby.
#!/bin/sh
if [ $# -eq 0 ]; then
echo "Usage:"
echo " ./deploy.sh some_stage_name"
else
rvm use `cat .ruby-version`@`if [ -f .ruby-gemset ]; then cat .ruby-gemset; fi;` do bundle exec cap [email protected] deploy &&
cd ./legacy &&
rvm use `cat .ruby-version`@`if [ -f .ruby-gemset ]; then cat .ruby-gemset; fi;` do bundle exec cap [email protected] deploy &&
cd ..
fi;
The deploy has failed with an error: #<SSHKit::Runner::ExecuteError: Exception while executing on host 1.2.3.4: "\xE2" from ASCII-8BIT to UTF-8
Answer the question
In order to leave comments, you need to log in
Resolved the issue. It was in bundle exec in the bundle file there were comments made in a different encoding. Actually did not reinvent the wheel and just changed the comments. Thanks for the help.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question