BoZhenka
Gets git-error while AWS deployment
Hi, I was near to the end of deploy but something was wrong.
I thinking that I was already done all configuration on a server and on a project. The last command which I do is: mix edeliver build release --branch=configure_deploy_branch
And when I do so I get the next output:
BUILDING RELEASE OF MY_APP APP ON BUILD HOST
-----> Authorizing hosts
-----> Ensuring hosts are ready to accept git pushes
bash is installed and the default shell
fatal: not in a git directory
A remote command failed on:
ubuntu@stage.my_app.net
Output of the command is shown above and the command executed
on that host is printed below for debugging purposes:
FAILED with exit status 128:
current_shell="$0" || :
[ -z "$current_shell" ] && current_shell="$SHELL"
case "$current_shell" in
(*bash*) echo 'bash is installed and the default shell' ;;
(*zsh*) echo 'zsh is installed and the default shell' ;;
(*)
echo
echo "You are using an unsupported shell: '$current_shell'"
echo "edeliver requires either bash or zsh to be installed"
echo "and the default shell for the build user 'ubuntu'"
echo "on your build host: 'stage.my_app.net'."
exit 1
;;
esac
set -e
if [ ! -d /home/ubuntu/deploy/my_app/app_builds ]
then
mkdir -p /home/ubuntu/deploy/my_app/app_builds
cd /home/ubuntu/deploy/my_app/app_builds
git init
git config receive.denyCurrentBranch ignore
else
cd /home/ubuntu/deploy/my_app/app_builds
git config receive.denyCurrentBranch ignore
fi
Here you can find my configuration .deliver/config :
APP="my_app"
BUILD_HOST="stage.my_app.net"
BUILD_USER="ubuntu"
BUILD_AT="/home/ubuntu/deploy/my_app/app_builds"
STAGING_HOSTS="stage.my_app.net"
STAGING_USER="ubuntu"
DELIVER_TO="/home/ubuntu/deploy/my_app/app_releases"
AUTO_VERSION=git-branch+git-revision+build-date+build-time
# for implementing prod.secret.exs in prod server
pre_erlang_get_and_update_deps() {
local _prod_secret_path="/home/ubuntu/deploy/my_app/app_config/prod.secret.exs"
if [ "$TARGET_MIX_ENV" = "prod" ]; then
__sync_remote "
ln -sfn '$_prod_secret_path' '$BUILD_AT/config/prod.secret.exs'
"
fi
}
# for compiling assets
.......
Ask if you need some additional information.
I saw something similar here , but my ~/.ssh/config already changed and still nothing
Popular in Questions
Hello everyone,
I try to use an Javascript Event Handler in my root.html.leex file.
Therefore I created a function in the app.js file: ...
New
For example for a current url like
http://localhost:4000/cosmetic/products?_utf8=✓&query=perfume&page=2,
I would like to get:
...
New
What is the idiomatic way of matching for not nil in Elixir?
E.g.,
First way:
defp halt_if_not_signed_in(conn, signed_in_account) when...
New
Could someone help me? I’m making my first elixir program, number guessing game. I can’t figure out how to convert the user’s guess from ...
New
Hi all,
I’ve just started learning Elixir and Phoenix Framework, so please pardon my n00bness at this stage.
I’m trying to use Postgres...
New
lets say i have a sample like
a = 20; b = 10;
if (a > b) do
{:ok, "a"}
end
if (a < b) do
{:ok, b}
end
if (a == b) do
{:ok, "equa...
New
I have followed this StackOverflow post to install the specific version of Erlang.
And When I am running mix ecto.setup then getting fol...
New
i’m a new one to elixir
which editor can i use
vs code? or atom?
Thanks! :smiley:
New
I’m not a pro in using Regex and can’t figure out why the following behaviour happens, especially if we take into account the difference ...
New
In asking this question I am more interested about the expressiveness of the language itself and less concerned about the availability of...
New
Other popular topics
Hi,
I have to write a raw query for one of my project. But till now I have used ecto queries and don’t have much experience writing raw ...
New
I wanted to check elixir version in phoenix because i found that my elixir is 1.5 but when i use Enum.chunk_by it said the function is un...
New
Surface is an experimental library built on top of Phoenix LiveView and its new LiveComponent API that aims to provide a more declarative...
New
I have a server on AWS, and was running a load test using artillery. When looking at the Phoenix dashboard I see the Ports going to 100% ...
New
In templates/appointment/index.html.eex:
<%= for appointment <- @appointments do %>
<tr>
<td><%= appoi...
New
Hello again - after a longish gap I’ve decided I really must dig into Elixir and see what’s been happening here - so I have a few questio...
New
Hey,
Just curious what are the main benefits of Elixir compared to Clojure?
When is Elixir more useful than Clojure and vice versa?
Th...
New
Credo is smart enough to check for (something like) this:
assert length(the_list) == 0
with this response:
Checking if an enum is empt...
New
I’ve got an issue with an app and I’ve no idea of how to troubleshoot it. I’m hoping someone here might have seen something similar.
I p...
New
I am going through the kafka architecture. All the features what the kafka is providing are already in Erlang. I would like hear your opi...
New








