I have a question regarding web development. (I mostly make Drupal websites) I've been trying to figure this out but I just can't find the best workflow. I will explain my issues:
I have a laptop (which I use for school mostly) And a pc. I would like to use both for development.
I figured the best practice would be to use something like GitHub. But I didn't want everything to be public. So I rented a vps and set up GOGS (a self hosted GitHub alternative) Everything works fine and I can use this to push and pull my work to other devices.
My current problem; If I for example develop a Drupal website I do the installation on my laptop. I need to do the same installation on my pc too. (as I am using a .gitignore. not the whole installation will be pushed and pulled.)
Is this the way i should work? I thought of some alternatives, but I don't know if they are better;
- I could not use a .gitignore, pushing and pulling the whole project to my vps. even files with passwords.
- I could not use my gogs vps and use a cloud service, or perhaps a NAS to sync one project to the other device. And then use local git to make repositories in the cloud service too.
I would like to ask you what the best way would be here? Thanks!