Tag: amazon ec2

How to install and support node.js app from git on Ubuntu server

Full stack of commands for install node.js and app from git on the Ubuntu server (Ubuntu 12.04 on Amazon EC2)

Playframework 2 – Deploying to ec2

I know that i can use the play dist command to upload it to an ec2 instance without any problems but the size is 35mb and I don’t want to wait 60min for every tiny change. (I have dsl 1000) Is it possible to use something like heroku where you just push your changes via […]

Why my deployment check failing here

I am trying to upgrade capistrano from v2 to v3. My deployment failing here My git path is $ which git /usr/bin/git $ /usr/bin/env git –version git version $ cap development deploy:check INFO [bc6a1c31] Running /usr/bin/env mkdir -p /tmp/my_app_name/ on 40.17.329.77 DEBUG [bc6a1c31] Command: ( RVM_BIN_PATH=~/.rvm/bin /usr/bin/env mkdir -p /tmp/my_app_name/ ) INFO [bc6a1c31] Finished […]

Amazon EC2 + Capistrano + Git: Permission denied (publickey)

When I deploy a Rails app to Amazon EC2 server with using Capistrano, I get ** [IP.compute-1.amazonaws.com :: out] Permission denied (publickey). ** [IP.compute-1.amazonaws.com :: out] fatal: The remote end hung up unexpectedly while executing the git clone command. I think it has something to do with Github keys, but I don’t know how to […]

Permission denied when cloning git repository

So I just setup an Amazon EC2 instance. And installed git.. sudo yum install git I then set up my ssh key with github. Now when I try to clone my repo into /var/www/html folder i get this error.. fatal: could not create work tree dir ‘example.com’.: Permission denied and when I run as root… […]

Cannot clone using deploy key (bitbucket) EC2

I am not able to clone my repository to my remote EC2 ubuntu instance using my deployment key. Here are the steps I followed. I deleted the existing deployment keys I had in my bitbucket account I cleaned ~/.ssh/know_hosts following https://stackoverflow.com/a/26520681/808734 I generated my new key following these steps and added it as a deployment […]

Correct Path for Git Remote Add from Amazon EC2 Instance to OSX Client Machine

I’m trying to do a git remote add from a repository that sits on a remote Amazon AMI back to a cloned copy of the SAME repository that is sitting on my local OSX machine. I’m confused about what file path to use. I assume it’s something like: git remote add my_clone <OSX_User_Name>@<OSX_HOST_NAME>:<PATH_TO_CLONED_REPO> I obviously […]

why doesn't my git post-receive hook seem to work

I have an Amazon EC2 instance that’s running linux and has git installed. I setup a git repo with the following command. git init –bare I then cd into the hooks directory and created a post-receive file that has the following bash script. #!/bin/sh GIT_WORK_TREE=/var/www/mysite export GIT_WORK_TREE git checkout -f when I push from my […]

Amazon EC2, deployment with capistrano, how to?

I am trying to deploy application to Amazon EC2 with capistrano. When I run cap deploy:cold or cap deploy I get: * 2014-08-27 13:23:39 executing `deploy:cold’ * 2014-08-27 13:23:39 executing `deploy:update’ ** transaction: start * 2014-08-27 13:23:39 executing `deploy:update_code’ executing locally: “git ls-remote git@bitbucket.org:username/repository.git HEAD” command finished in 1929ms * executing “git clone -q git@bitbucket.org:username/repository.git […]

AWS CodeDeploy can't find github tar link for private repository “could not download bundle”

I am setting up AWS CodeDeploy to get revision from GitHUB private repository. I tried using both AWS CodeDeploy GUI and also aws deploy command. For GUI, I follow instruction of this page https://blogs.aws.amazon.com/application-management/post/Tx33XKAKURCCW83/Automatically-Deploy-from-GitHub-Using-AWS-CodeDeploy. I typed in my credential when connect to GitHub repository. I have also made sure that the appspec.yml file is in […]

Git Baby is a git and github fan, let's start git clone.