how to update plexconnect

Just Google basic git commands, it's really not that difficult.
If you're absolutely adverse to anything concerning the command line, maybe this application can help you: http://windows.github.com


thats the app i used..it wont overwrite previous install directory..hense the reason i replyed above..i also tryed 4 other windows apps..
i guess command line will overwite?

I guess it's more of a terminology problem. Git works the same, wether you use it on the command line or via any app (which uses the git commands in the background anyway).

"git clone" checks out the repository from Github (in this case). So this is the initial step.

"git pull" later pulls in any updates. Thusly overwrites (unchanged) files in your local repository. If you haven't manually altered any of the scripts you'll get everything that was commited to the main repository ("origin" in git terms) since you last pulled or cloned.

So maybe you just tried to "re-clone" the repo, instead of updating it?

Try Tower for Mac, does not require git or xcode to be installed on osx, however is very developerish. Helped me learn more about branches, commits and what not!

http://bit.ly/1eixNME

I tried getting this running in Windows GUI but in the end found it a lot easier to use the command line.

For those interested my steps were:

* Install msysgit from here: http://code.google.com/p/msysgit/downloads/list?can=2&q=%22Full+installer+for+official+Git+for+Windows%22

  - one of the options is to allows you to add git to the path - select this option

* Rename my c:\plexconnect directory to c:\plexconnect.backup

* Make a new c:\plexconnect directory

* Initial clone:

cmd prompt
c:
cd\
git clone https://github.com/iBaa/PlexConnect PlexConnect

* Copy back settings.cfg, atvsettings.cfg and the certificates folder (under assets) to new Plexconnect folder

* Test all works correctly

* Then when I want to update I have a script that does the update and re-launches Plexconnect.  First I ctrl-c the existing Plexconnect session.

Plexconnect.bat

c:
cd \plexconnect
git pull
start /min c:\python27\python -b C:\PlexConnect\PlexConnect.py
pause

Note that the pause is just so I can see if it did an update and so only for testing purposes.

I know all of this is extremely basic, but it took me a while to get my head around GIT so I suspect there's others out there in the same boat.

Tony

I havent been on windows in awhile…nice write up btw…can you run bash scrips or create a shortcut to run this git pull on windows to automate the process?

I have a shortcut to the batch file on my taskbar. I just ctrl-c the existing session then click the shortcut.  I had thought of automating it but can't really see any benefit.  I also like to know when updates have been done in case there's a problem and need to go back.

Well this is how I automated it on osx in order to avoid database errors and to also update when I wanted to. I shutdown plexconnect, updated, then retarted plexconnect all in one script which I implemented into OpenConnect and webconnect. I wonder if there is a similar way you could do this on windows. If there is maybe windows can get a cgi using apache2 to manage plexconnect. Here’s a pic of webconnect on post1:

https://forums.plex.tv/topic/95260-openconnect-osx-app/


What I like about webconnect using apace2 and cgi is you can see whats going in when it updates plexconnect as in the changes to the code and only updates when you choose to (on demand).

I think it would be possible.  Would just need to know the command to cleanly shutdown the plexconnect engine (instead of ctrl-c).

I tried getting this running in Windows GUI but in the end found it a lot easier to use the command line.

For those interested my steps were:

* Install msysgit from here: http://code.google.com/p/msysgit/downloads/list?can=2&q=%22Full+installer+for+official+Git+for+Windows%22

  - one of the options is to allows you to add git to the path - select this option

* Rename my c:\plexconnect directory to c:\plexconnect.backup

* Make a new c:\plexconnect directory

* Initial clone:

cmd prompt
c:
cd\
git clone https://github.com/iBaa/PlexConnect PlexConnect

* Copy back settings.cfg, atvsettings.cfg and the certificates folder (under assets) to new Plexconnect folder

* Test all works correctly

* Then when I want to update I have a script that does the update and re-launches Plexconnect.  First I ctrl-c the existing Plexconnect session.

Plexconnect.bat

c:
cd \plexconnect
git pull
start /min c:\python27\python -b C:\PlexConnect\PlexConnect.py
pause

Note that the pause is just so I can see if it did an update and so only for testing purposes.

I know all of this is extremely basic, but it took me a while to get my head around GIT so I suspect there's others out there in the same boat.

Tony

 Hi tony,

This is absolutely fantastic, thank you ever so much for sharing

Cheers Rob.

Thanks Tony.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.