Using Git With Namecheap Web Hosting: Difference between revisions

From Littledamien Wiki
Jump to navigation Jump to search
No edit summary
 
Line 1: Line 1:
[[Category:Git]] [[Category:Web Development]]
== Overview ==
== Overview ==


Line 29: Line 27:
* Router
* Router
** The ssh port has to be enabled on the router.
** The ssh port has to be enabled on the router.
[[Category:Git]][[Category:Web Hosting]][[Category:Web Development]]

Latest revision as of 12:39, 6 October 2018

Overview[edit]

I'm not sure this is possible with shared servers. I know I read in their forums at one point that they did not support it, but I just looked again and found this in the forums: Using Git on Namecheap - what is the remote path?

The status message that git give in response to the command seems normal, but no files are updated.

I think this is because the Git repository on damienjay.com is not synced to the repo on the development server. This seems like it's only possible with a git clone from the production server, but I haven't been able to get that to work yet.

Git push[edit]

> git push ssh://username@server56.web-hosting.com:21098/home/username/public_html/path/to/git/project [branch]

(Source: Using Git on Namecheap - what is the remote path? (Namecheap forums))

N.B. server56 in the domain in the example above is probably not going to be the correct subdomain. It's necessary to confirm that with CPanel.

Git pull[edit]

The ssh server has to be running on littledamienii.

  • Bitvise SSH Server (formerly WinSSHD)
    • Bitvise SSH Server does not start up automatically.
    • Manually start server: Server tab > Start WinSSHD
    • N.B. that it is not using the default port number.
  • Router
    • The ssh port has to be enabled on the router.