2

I am deploying to Digital Ocean via Codeship. Following this example, Codeship runs the following custom script in the Droplet:

ssh root@<MY_IP> 'cd /var/www/example/backend/; git checkout master; git pull; npm install;'

This all runs fine. However, when I SSH into my Droplet from my local machine, the changes are not reflected within the git repo. Instead, there is a directory called v8-compile-cache-0. Reading the description of the npm package of that name does not further my understanding.

What is going on here, and how do I get my pulled changes properly reflected in the Droplet?

223seneca
  • 1,136
  • 3
  • 19
  • 47

1 Answers1

3

This all runs fine

Stringing together commands with semicolons may silence issues with commands that would otherwise be returning nonzero exit codes.

I'd first attempt re-running this build using double ampersands instead and then reaching out to support@codeship.com if changes are still not reflected in your droplet.

Drew Kitch
  • 201
  • 1
  • 3
  • I did that, and I received a new error indicating that the password with which I was attempting to connect to my repo was incorrect. I logged into the Droplet from my local machine and saved the password using `git config credential.helper store`. In addition, I updated my script to use `git pull origin ` instead of just `git pull`. These changes together lead to my desired outcome. Since your suggestion to use double ampersands allowed me to find a solution, I'll accept this answer. – 223seneca Sep 13 '18 at 21:29