How to Deploy Phoenix To Amazon Ec2?

I am using fedora os, Can someone please tell me how to deploy phoenix app to amazon ec2 ?

What have you tried so far? And how familiar are you with deployment (of any app in any language) in general?

The most straightforward way is to follow the official guide on deployment: http://www.phoenixframework.org/docs/deployment

However, for a more reliable method, you might need some release management tools. There are already threads that discuss this in detail, and they will give you pointers on what to do:

i have started the process of delpoyment, I need a better deployment guide.

Which guide(s) have you tried? What doesn’t work?

You might get better replies if you provide a more detailed context on where you are standing right now.

I am using this https://github.com/dwyl/learn-phoenix-framework/blob/master/production-deployment.md#build-the-release but when i run the command like mix edeliver build release --verbose, I am getting error like follow

BUILDING RELEASE OF TEST APP ON BUILD HOST
-----> Authorizing hosts
-----> Ensuring hosts are ready to accept git pushes
A remote command failed on:
ec2-user@x.x.x.x
Output of the command is shown above and the command executed
on that host is printed below for debugging purposes:
FAILED with exit status 255:
set -e
if [ ! -d /home/ec2-user/xxxx/builds ]
then
mkdir -p /home/ec2-user/xxxx/builds
cd /home/ec2-user/xxxx/builds
git init
git config receive.denyCurrentBranch ignore
else
cd /home/ec2-user/xxxx/builds
git config receive.denyCurrentBranch ignore
fi