Tag: nginx

nginx + passenger + sqlite3 on Pi getting 502 bad gateway

n00b to RoR here. I’m moving an application from my mac onto my raspberry pi using git clone. after the clone took place, i did bundle install then i installed passenger and nginx: gem install passenger rvmsudo passenger-install-nginx-module setup the database and seeded it rvmsudo rake db:setup RAILS_ENV=production then setup nginx to load on boot […]

Auto deploy rails Gitlab projects to subdomains with Nginx and Phusion Passenger

I’ve just installed Nginx, Phusion Passenger, and and Gitlab on a virtual machine. Almost all my projects will be rails applications. Instead of having to configure them individually, it would be great if I could automatically host them on a subdomain when a new project is created. So when a user creates a project a […]

How to set git hook over HTTP protocol to Automate development on a remote server

I am using git for version control and I want to Automate git to pull everything any of the collaborators push on release branch to a remote server automatically and if I want to do this over ssh, I have to add all of collaborators ssh-keys in my server, but I don’t want to give […]

GitLab SSL handshake error when performing a Git Pull/Clone Using TortoiseGit and Ansible

Hoping for some pointers on an issue I am running into with a brand new installation of GitLab running on RHEL 7. I configured GitLab to use SSL, and browsing to our server in a web browser using https://servername.domainname works perfectly fine, however doing any kind of Git Clone or Pull over https fails with […]

Correct way to update live django web application

Before the actual problem let me explain our architecture. We are using git through ssh on our servers and have post-recieve hooks enabled to setup code. The code is all maintained in a separate folder. What we need is whenever a person pushes code to the server, it runs tests,migrations and updates it on live […]

Avoiding to hardcode server configuration

I’m working on a Rails application, and I’m about to open-source it. I’m deploying it to a VPS server, configured with nginx and unicorn, following this RailsCast. In order to get Capistrano, Nginx and Unicorn working properly, I had to add some server configuration files in my config/ folder, such as deploy.rb, nginx.conf, unicorn.rb and […]

GitLab remote repository with a non standard port

I have the following error: ssh: connect to host git.limeworks.eu port 22: Connection refused fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. Now, the configuration I have in my local .ssh/config file is: host limeworks user git port 6565 hostname git.limeworks.eu; and in […]

Git on server with nginx

I was looking for manual how to set up git on server with nginx and I haven’t found it. I’ve logged in to server by ssh with root user, installed git-core and created a bare repo. Whats next? How to make this special http link to this repo to connect to repo from many computers […]

git push to nginx+git-http-backend : error: Cannot access URL http return code 22 fatal: git-http-push failed

I was configuring my git repos to serve over http in Ubuntu 14.04 (using nginx/1.4.6+git-http-backend+fastcgi:fcgiwrap 1.1.0-2). But caught with the following error. # git push origin master Username for ‘http://server.com’: git Password for ‘http://git@gittest.cloudthis.com’: error: Cannot access URL http://server.com/rahul.git/, return code 22 fatal: git-http-push failed My nginx site’s configuration is as follows. server { listen […]

502 Bad Gateway from Nginx for large GitLab fork

I’m running GitLab 6.0.0 through Nginx and can fork small repositories, but when I try to fork a large repository (2GB) I see a “502 Bad Gateway” page after about one minute. /var/log/nginx/gitlab_error.log shows: 2013/08/29 12:21:33 [error] 25098#0: *221 upstream prematurely closed connection while reading response header from upstream, client:, server: myserver, request: “POST […]

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