0 users online. Create an account or sign in to join them.Users

Search

I’m working on a my new personal website and I thought it would be a good idea to use git to keep track of things - especially for updating extensions easily. My host doesn’t support git on their servers, so I thought of the following scenario:

  • setting up a local git repository on my Mac,
  • adding all extensions as submodule (GitHub),
  • making changes, updating submodules and finally upload everything manually to my server.

This is working just fine until I start thinking of Symphony extensions I develop myself. I have a local git repository with my current code for Mediathek for example which I first test in my own projects before pushing it to GitHub. Is there a good and easy way to integrate a local git repository as submodule on a Mac?

Are you using git for developing Symphony site?
If yes, how are you using it? How is your workflow?

Tips and ideas are welcome!
Thanks, Nils

Nils - you might want to consider getting a VPS as an upgrade from a hosting account (unless I’m misunderstanding you). That way you can install git, or any other software you please, on your server and configure it any way you like.

I think you’ll find with almost any VPS you’ll get far better performance than on a shared hosting account.

Of course I understand that if you have a lot of sites and other work already on your existing account, that might be a lot of work!! But might be something to consider.

Thanks, Rob. Sadly updating to a VPS is not an option at the moment.

I just ordered a tiny vServer for 1,70 EUR per Month. Just to host my own Git repositories. :-)

Sidenote: It’s not due to the price but due to the work needed to transfer all connected sites why it’s not an option at the moment.

But back to my topic :) I was asking for local Git setups.
Anybody using Git and Symphony locally on a Mac? (for versioning and easy core and extension updating)

@nils I have a work flow similar to the one you first mention above. The second piece, adding one local repo as a submodule to another local repo, have not personally done, but I believe it is possible. Take a look at Scott Chacon Gitcast on Git Submodules. I believe the examples he walks through shows a perfect example of what you are trying to do.

On a side not, for pushing things to the server you might take a look at using rsync, or, something like Vlad or Capistrano. Vlad and Capistrano are ruby projects, but I have used them successfully to make deploying php easier.

I’m not, but I don’t see what would stop you. I run it on ubuntu, and it works just finr. I know we’ve mentioned this in the past, but this might be of interest to your situation:

How to Use a Git Hook to Upload to a Website That Only Allows FTP

Haven’t set it up myself, but could be fun to try.

Thanks for the links, guys.

I’m using Gity which offers easy ZIP export, so it shouldn’t be a problem to get a certain branch or tag for ftp upload. My editor of choice is Espresso which allows direct upload to a server – it has an update function which allows the exclusion of certain folders (like the Git ones), so it should be possible to update a site directly from a local Git repository. I haven’t tried it yet but I will experiment with it.

My main problem is to handle local and external Git submodules. Maybe that Gitcast will enlighten me.

@ashooner I’ll have to check that out. I am working on a couple projects right now where that might make a little more sense.

@Nils I looked through the online version of his book, but didn’t see what exactly I am looking for. If I remember things correctly, there is a daemon/server process you can start up in git that allows you too pull from local repos.

Create an account or sign in to comment.

Symphony • Open Source XSLT CMS

Server Requirements

  • PHP 5.2 or above
  • PHP's LibXML module, with the XSLT extension enabled (--with-xsl)
  • MySQL 5.0 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts

Sign in

Login details