Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • G gitlabhq1
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 21
    • Issues 21
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 12
    • Merge requests 12
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • gpt
  • large_projects
  • gitlabhq1
  • Issues
  • #2254

Closed
Open
Created Dec 11, 2012 by Administrator@rootOwner

post-receive hook

Created by: jbrooksuk

I'm trying to setup a post-receive hook which will deploy my site from local to live. Basically, they're different folders in the same location; /var/www/

One is called site the other is site_dev for example.

What I'm trying to do is setup a hook so that when I push to the master of site_dev GitLab will automatically pull the changes into site. I've tried following tutorials yet nothing.

I'm running sudo -u gitlab bundle exec rake environment resque:work QUEUE=* VVERBOSE=1 PIDFILE=tmp/pids/resque_worker.pid RAILS_ENV=production --trace on the server and my pushes are being noticed by Resque, however my post-receive hook isn't doing anything.

Does anybody have any ideas?

Assignee
Assign to
Time tracking