Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
856 votes
34 answers
225k views

Permission denied (publickey) when deploying heroku code. fatal: The remote end hung up unexpectedly

I'm attempting to deploy my code to heroku with the following command line: git push heroku master but get the following error: Permission denied (publickey). fatal: The remote end hung up ...
419 votes
19 answers
128k views

Deploy a project using Git push

Is it possible to deploy a website using git push? I have a hunch it has something to do with using git hooks to perform a git reset --hard on the server side, but how would I go about accomplishing ...
Kyle Cronin's user avatar
  • 78.6k
190 votes
2 answers
137k views

Checking out Git tag leads to "detached HEAD state"

I'm developing a deployment script for my git project and I just started using tags. I've added a new tag called v2.0: git tag -a v2.0 -m "Launching version 2.0" And I've pushed this tag to the ...
Khriz's user avatar
  • 5,958
121 votes
6 answers
138k views

Git: auto pull from repository?

Is there any way to set up git such that it listens for updates from a remote repo and will pull whenever something changes? The use case is I want to deploy a web app using git (so I get version ...
Li Haoyi's user avatar
  • 15.6k
101 votes
4 answers
184k views

Git command to checkout any branch and overwrite local changes

Is there a Git command (or a short sequence of commands) that will safely and surely do the following? Get rid of any local changes. Fetch the given branch from origin if necessary Checkout the given ...
szeryf's user avatar
  • 3,347
95 votes
10 answers
80k views

The unauthenticated git protocol on port 9418 is no longer supported

I have been using github actions for quite sometime but today my deployments started failing. Below is the error from github action logs Command: git Arguments: ls-remote --tags --heads git://github....
monofal's user avatar
  • 1,968
77 votes
9 answers
36k views

Automated heroku deploy from subfolder

I know you can deploy automatically to heroku from github, but I haven't found a way to only push a subfolder from github to heroku. From the command-line I know it is possible to do this with: git ...
Divino Neto's user avatar
70 votes
11 answers
37k views

ExecJS::ProgramError: Unexpected token punc «(», expected punc «:» when running rake assets:precompile on production

When deploying my Rails app I get the following error: rake aborted! ExecJS::ProgramError: Unexpected token punc «(», expected punc «:» (line: 15, col: 14, pos: 265) Error at new ...
orion3's user avatar
  • 9,895
67 votes
12 answers
16k views

Deploying a Git subdirectory in Capistrano

My master branch layout is like this: / <-- top level /client <-- desktop client source files /server <-- Rails app What I'd like to do is only pull down the /server directory in my ...
Jarin Udom's user avatar
  • 1,849
57 votes
6 answers
70k views

Git push to live server

We have a website that has all its PHP/HTML/JS/CSS/etc files stored in a Git repository. We currently have 3 types of computers (or use cases) for the repository. Local developer: pull latest changes,...
Petah's user avatar
  • 45.9k
42 votes
6 answers
41k views

Automatically Deploy From GitHub To Server On Push

We have a VPS on Linode, and code hosted on GitHub. How do we setup so when we push to GitHub, it also pushes automatically to our Linode server. We are using PHP on the Linode server.
Justin's user avatar
  • 44.6k
41 votes
6 answers
52k views

git clone from local to remote

We're in the process of migrating from Mercurial to Git for our workflow and I have two minor issues. First, is it possible to "clone" a local repository directly into an empty remote (ssh) dir? ...
hlidotbe's user avatar
  • 908
39 votes
4 answers
55k views

How to deploy to Heroku directly from my Gitlab repository

In my team, we use Gitlab as a remote repository, so we are looking for a solution to auto deploy our apps to Heroku. We found Codeship for auto deploying apps to Heroku from Github. Any tips? Tricks?...
Toanalien's user avatar
  • 669
39 votes
6 answers
25k views

Jenkins: Multiple Git repositories for one project

I want to build a project using two Git repositories. One of them contains of the source code, while the other has the build and deployment scripts. My problem is that I need to have a repository for ...
Mihai's user avatar
  • 2,135
34 votes
7 answers
28k views

How can I use git-archive to include submodules from a bare repository?

I'm in the process of setting up a deployment script. The basic process is: Push changes to a bare repository on the server Then based on new tags will create a new folder for the release. Use git ...
Jacob's user avatar
  • 8,328
32 votes
3 answers
24k views

When to pull from Docker repo and when from Git repo and then build?

Suppose I have a machine. It can be a single production server, one of production nodes in a cluster, some kind of staging server, a server or a cluster for testing or a developer workstation. Or ...
Gherman's user avatar
  • 7,248
32 votes
5 answers
29k views

How to update code from Git to a Docker container

I have a Docker file trying to deploy Django code to a container FROM ubuntu:latest MAINTAINER { myname } #RUN echo "deb http://archive.ubuntu.com/ubuntu/ $(lsb_release -sc) main universe" >> /...
Cheruiyot Felix's user avatar
32 votes
5 answers
24k views

Using Git with shared hosting plan

So I started using Git together with this workflow to make a personal website (mostly for testing and to learn Git) and I am developing it locally on my laptop using Xampp. But now I would like to ...
Gladen's user avatar
  • 792
31 votes
8 answers
15k views

Best strategy to deploy static site to s3 on github push? [closed]

I'd like to automate deploying our site to AWS S3. I've written a node script to automate building and uploading the site, but I'd like to have the script automatically run whenever the master branch ...
Mike Douglas's user avatar
  • 3,365
30 votes
2 answers
25k views

automate usage of SSH local key for git deployment with ansible

I am working with vagrant and ansible. I want to automate the deployment role of ansible (You can check my repo here). For this purpose, I am trying to deploy my local ssh key into my VPS and my ...
oskargicast's user avatar
28 votes
3 answers
10k views

Good Git deployment using branches strategy with Heroku?

What is a good deployment strategy to use with Git + Heroku (Ruby on Rails)? Currently, the way I work with my origin Git repository: All features (or 'stories') are first checked out as branches, ...
Zaqintosh's user avatar
  • 349
28 votes
9 answers
35k views

Heroku Cannot GET /

I am new to Heroku and believe I am following all of the steps outlined on Heroku's website to deploy via node.js – https://devcenter.heroku.com/articles/getting-started-with-nodejs – but despite ...
bullcitydave's user avatar
25 votes
1 answer
17k views

Simple git post-commit hook to copy committed files to a certain folder

I would like to automatically copy the committed files to a certain folder so they can be viewed in a browser, but I would like to do this without having to create a bare repository that mirrors the ...
kioleanu's user avatar
  • 949
24 votes
2 answers
5k views

Using git-flow in a multi-stage deployment

Drawing a blank with finalizing my deploy scheme here. After posting this question: Migrating a production site with no VCS at all to Git, I've got the gist of deploying to a local repo down. My ...
James's user avatar
  • 559
23 votes
3 answers
22k views

Git - multiple users using the same working dir: permissions issues in .git meta-files

The Issue: when multiple users have access to the same working directory, permissions issues can occur in the meta-data if any git operations are performed. DISCLAIMER: Before you chastise me - I ...
kghastie's user avatar
  • 749
22 votes
12 answers
24k views

How to realise a deployment branch in Git

I'm using git for a PHP project, I think it's really handy. There is one thing that would be great if I get it to work. I have created a branch, meant for deployment. It has some differences, like ...
Ikke's user avatar
  • 101k
21 votes
1 answer
13k views

Adapting the git-flow model for pre-production environments

I am thinking of extending the git-flow model for my current workplace, due to a particular scenario. But my scenario is so common that I'm surprised no-one's done this before with the git-flow model, ...
Nik Silver's user avatar
20 votes
8 answers
18k views

Login is currently incompatible with git bash/cygwin

I just download this version Git-2.6.1-64-bit.exe my OS is windows 10 64bit.. why I cannot still log in it? is Git-2.6.1-64-bit.exe the latest one? before it was MINWG32 now updated become MINWG64 ...
Elmer Maxino Cacaldo's user avatar
20 votes
1 answer
14k views

Github Access Error - AggregateException encountered [duplicate]

I am using a github Repo for almost one year and since this morning I am not able to push my code to the remote repo. I get following error in the command line: fatal: AggregateException ...
Nadine Fisch's user avatar
19 votes
6 answers
6k views

Repository deployment and Composer : what workflow?

As a PHP developer I find myself working with Composer a lot. In the past it was on personal projects and such so I didn't have much problems with it, but now with Laravel 4 it's on project that ...
Maxime Fabre's user avatar
  • 2,252
19 votes
5 answers
18k views

Deploying with Git/Github

We are trying to setup an automated deployment environemt with Git/Github. We have 3 different environments; local, test and live. When we add a new feature on local, we first upload files to test ...
Burak Erdem's user avatar
  • 19.8k
18 votes
4 answers
22k views

Git submodule password prompt

I'm trying to setup a git deploy setup, wherein I push my changes when ready to a git repo on a staging server, that then uses a post-recieve hook to deploy the code from the various branches to the ...
SS44's user avatar
  • 847
18 votes
5 answers
20k views

Capistrano + Git : repository local to production server

I am trying to do 'deploy:cold' for my app. The git repo is local to my deployment server (i.e. I only have one server for everything and I don't host my code on github). Here is the transcript (...
Mark Richman's user avatar
  • 29.5k
18 votes
4 answers
1k views

Git Post-receive hook with part of work tree

I would like to use git to deploy to a website to a testing server. My website is a wordpress theme built with gulp and the repository looks like theme.git/ -- gulpfile.js -- src/ -- build/ I've ...
rob-gordon's user avatar
  • 1,458
17 votes
2 answers
7k views

App pushed to heroku still shows standard index page

I went through the steps to install git and the heroku gem and successfully pushed my app to heroku. The problem is, it shows a standard "You're Riding Ruby on Rails" page even though the local app I ...
dsp_099's user avatar
  • 5,961
17 votes
1 answer
3k views

How to deploy .gitignored compiled files in Heroku?

I have a compiled folder named /target where my server.js lives. Since it's compiled files, I added /target to .gitignore since I don't want all those changes checked it into my GitHub. But Heroku ...
hzhu's user avatar
  • 3,789
17 votes
2 answers
422 views

Deploy path doesn't work for Git Deploy Method in middleman-deploy

I am using middleman-blog and middleman-deploy. What I would like to do, is within the branch I am deploying to, I want the static files to be deployed to a subfolder within the repo (i.e. not the ...
marcamillion's user avatar
  • 33.6k
16 votes
1 answer
10k views

netlify deploy failed: git ref refs/heads/master does not exist or you do not have permission

I ran into a bigger problem and am really desperate and downturned because I cannot figure out a solution. I am using a Notebook with Linux Debian 9, git for version control, bitbucket as source code ...
timunix's user avatar
  • 609
16 votes
2 answers
2k views

Atomic website update with Git

I'd like to update a live website in an atomic way. If we've made several changes to pages, images, and javascript, all of the changes should appear simultaneously with no downtime, inconsistency, or ...
ccleve's user avatar
  • 15.6k
15 votes
2 answers
12k views

Git vs FTP for web deployment [closed]

I know what git is for and how to use it, (a little bit) but there is one concept I still don’t fully understand. I have heard a lot of web developers lately saying that they use git for every web ...
fs_tigre's user avatar
  • 10.6k
15 votes
1 answer
23k views

Ansible: how to run task on other host inside one playbook?

I'm writing ansible playbook for one specific goal: i'd like to sync directory on server A-n, but before i should make git pull on server "B". I launch playbook on host A-n (described in inventory). I ...
Frexin's user avatar
  • 625
15 votes
2 answers
11k views

Git - deploy dist folder to different remote

I'm trying to figure out a way to deploy a dist folder to a different remote repo using Git. The working project is stored in an app folder. I use grunt to optimize and compile the working project ...
pixelworlds's user avatar
15 votes
4 answers
3k views

Heroku + Github deployment strategies

I am working on a web app, hosting the source code on Github and running the app on Heroku. Everything works fine, but I have on issue I can't wrap my head around. Before the deploying my code, I run ...
mbuchetics's user avatar
  • 1,410
15 votes
2 answers
2k views

working with git in a web-project for multiple customers

Is there a better proposal to version control web-projects with small random updates in several customer projects with git? I want to use git to version control for web projects. The main difference ...
Achim's user avatar
  • 442
15 votes
4 answers
3k views

PHP deployment using Git. How can I make it more automated?

I am in charge of launching web projects and it takes a little too long currently from client sign off to final launch. It is on a server which I have root access to, but it runs Plesk so that the ...
Treffynnon's user avatar
  • 21.5k
14 votes
3 answers
15k views

Heroku/python failed to detect set buildpack

I'm a Django newbie, I created an app and want to deploy it using Heroku. However, when I do git push heroku master (I follow Heroku's getting started), this is what I got: Counting objects: 36, done....
user avatar
13 votes
3 answers
3k views

How do you handle deploying rails applications with submodules?

I recently turned a couple of my plugins into submodules and realized that when you "git clone" a repository, the submodule directory will be empty. This makes sense for co-developers to initialize ...
Tony's user avatar
  • 19k
13 votes
4 answers
5k views

Git: application configuration and different environments

We use git for most of the web applications we build in our shop, and though the applications themselves use a variety of technologies (PHP, Rails, etc), we generally have a staging and production ...
justinbach's user avatar
  • 1,955
13 votes
4 answers
24k views

How to apply git diff --binary patches without git installed?

I use to git diff to generate patches that can be applied to remote server to update a project. Locally, I run: git diff --no-prefix HEAD~1 HEAD > example.patch Upload example.patch to remote ...
Taras Mankovski's user avatar

1
2 3 4 5
25