Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Installing SilverStripe /

Getting SilverStripe up and running on your computer and on your web server.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Composer, git and Silverstripe themes


Go to End


2 Posts   2051 Views

Avatar
_Matt

Community Member, 29 Posts

22 November 2012 at 10:09pm

I wonder if anyone could offer advice on workflow with regards to composer, git and Silverstripe themes.

The issue I have is this.

I use composer to create a project locally and I push that project to my remote git (not github) repository. However, the Simple theme does not seem to be tracked by git and therefore doesn't get pushed.

My hosting is shared virtual hosting and although I have ssh access I can't install composer on it and therefore can't run a composer install/update in the git repo or live site (which would presumably pull in the Simple theme).

What would be the best way to manage my workflow in this instance? Am I just going to have to ignore/remove Simple as a dependency? Obviously I will create my own theme anyway, which I can vc with git in the normal way. But if I want to add my new theme to github and install it using composer in the same way that Simple is installed I'm presumably going to come across the same problem?

Avatar
MarioSommereder

Community Member, 107 Posts

3 April 2015 at 1:35pm

2012... 2015... who cares?

The thing is, that simple is a separate .git repository. So when you check the simple folder, you'll find a .git folder inside. When you delete it, you're able to add simple to your repository as you are used to.

- Mario