3

I have several php+html+css websites and up until now was working on them directly from ftp. I would like to introduce version control (github) but dont know how to go about it. My webhosting has cpanel and if Im not mistaken it should accept deployment from github. How I should go about it?

Comments
  • 1
    I think you're lacking guidance.

    Normally you would set up your git folder on your development computer (most times thats literally your project root folder, enjoy all the gitty things, and whenever you've got a state that's ready for deployment you merge your development branch back into your master branch and push that to where it's needed.

    This is where deployment tools step in. Surely you could just ftp the built project files over yourself, or you could look for a tool that does all that for you. I know that GitLab has this out of the box. (not sure if thats an enterprise / premium feature)

    What I can read from the post it sounds like you're coding on production. ... I seriously wouldn't do that for anything somewhat serious.

    But thats the basic wrap. Hope that gives you an idea.
  • 0
    @beggarboy could you recommend some tutorial? I should setup dome apache/wamp/xampp dev environment for myself then I guess?
  • 1
    @zemaitis Yeah that would be a good first start. If you need a recommendation on an editor, I would pick VS Code.

    Here's a git quickstart
    http://rogerdudler.github.io/git-gu...

    And I don't personally know anything better than xampp myself, but there might be. I am wrong person for that. I am used to angular doing all that for me.
  • 1
    @zemaitis Laragon is a nice portable local web stack for development. It was designed for laravel, but their stack is much more flexible than that. They even have auto-configured local domains so you can do "project.dev" in your web browser instead of localhost and have each project logically separated from each other.
Add Comment