Linux Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsOperating SystemsLinux Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old May 19th, 2011, 06:40 AM
bacterozoid bacterozoid is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2009
Posts: 95 bacterozoid User rank is Sergeant Major (2000 - 5000 Reputation Level)bacterozoid User rank is Sergeant Major (2000 - 5000 Reputation Level)bacterozoid User rank is Sergeant Major (2000 - 5000 Reputation Level)bacterozoid User rank is Sergeant Major (2000 - 5000 Reputation Level)bacterozoid User rank is Sergeant Major (2000 - 5000 Reputation Level)bacterozoid User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 1 Day 9 h 45 m 30 sec
Reputation Power: 29
Version Control (Git) For Web Projects

I'd like to use some version control with my web projects, but I don't want it to get in my way. Right now if I make a change to my project I have to commit it before I can view those changes live on the development server. I'd like to simply be able to save a file, which then pushes it out onto the server. Then, at my choosing, I can commit my project to the repository. Any suggestions?

I'm using:

Ubuntu 10.10
SSH (Public key)
GIT
Apache/PHP/MySQL

Reply With Quote
  #2  
Old May 19th, 2011, 12:18 PM
kicken's Avatar
kicken kicken is offline
Wiser? Not exactly.
Dev Shed God 1st Plane (5500 - 5999 posts)
 
Join Date: May 2001
Location: Bonita Springs, FL
Posts: 5,654 kicken User rank is General 37th Grade (Above 100000 Reputation Level)kicken User rank is General 37th Grade (Above 100000 Reputation Level)kicken User rank is General 37th Grade (Above 100000 Reputation Level)kicken User rank is General 37th Grade (Above 100000 Reputation Level)kicken User rank is General 37th Grade (Above 100000 Reputation Level)kicken User rank is General 37th Grade (Above 100000 Reputation Level)kicken User rank is General 37th Grade (Above 100000 Reputation Level)kicken User rank is General 37th Grade (Above 100000 Reputation Level)kicken User rank is General 37th Grade (Above 100000 Reputation Level)kicken User rank is General 37th Grade (Above 100000 Reputation Level)kicken User rank is General 37th Grade (Above 100000 Reputation Level)kicken User rank is General 37th Grade (Above 100000 Reputation Level)kicken User rank is General 37th Grade (Above 100000 Reputation Level)kicken User rank is General 37th Grade (Above 100000 Reputation Level)kicken User rank is General 37th Grade (Above 100000 Reputation Level)kicken User rank is General 37th Grade (Above 100000 Reputation Level)  Folding Points: 2670569 Folding Title: Super Ultimate Folder - Level 6Folding Points: 2670569 Folding Title: Super Ultimate Folder - Level 6Folding Points: 2670569 Folding Title: Super Ultimate Folder - Level 6Folding Points: 2670569 Folding Title: Super Ultimate Folder - Level 6Folding Points: 2670569 Folding Title: Super Ultimate Folder - Level 6Folding Points: 2670569 Folding Title: Super Ultimate Folder - Level 6Folding Points: 2670569 Folding Title: Super Ultimate Folder - Level 6Folding Points: 2670569 Folding Title: Super Ultimate Folder - Level 6Folding Points: 2670569 Folding Title: Super Ultimate Folder - Level 6Folding Points: 2670569 Folding Title: Super Ultimate Folder - Level 6
Time spent in forums: 2 Months 2 Weeks 2 Days 5 h 1 m 44 sec
Reputation Power: 3436
Either do your changes on the development server, or setup your own local server on your PC to do your dev work. Once your happy with the changes, commit them.
__________________
Recycle your old CD's, don't just trash them


Spidermonkey Tutorial;

If I helped out out, show some love with some reputation, or tip with Bitcoins to 1N645HfYf63UbcvxajLKiSKpYHAq2Zxud

Reply With Quote
  #3  
Old May 19th, 2011, 12:33 PM
bacterozoid bacterozoid is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2009
Posts: 95 bacterozoid User rank is Sergeant Major (2000 - 5000 Reputation Level)bacterozoid User rank is Sergeant Major (2000 - 5000 Reputation Level)bacterozoid User rank is Sergeant Major (2000 - 5000 Reputation Level)bacterozoid User rank is Sergeant Major (2000 - 5000 Reputation Level)bacterozoid User rank is Sergeant Major (2000 - 5000 Reputation Level)bacterozoid User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 1 Day 9 h 45 m 30 sec
Reputation Power: 29
Working on my development server won't work - it's just a console-only VM.

Working on my PC won't work - It's a windows environment and doesn't have all the necessary software (PHP has various EXEC calls to programs installed on the server)

However, I have thought about it a little and understand what you're trying to say. There are trade-offs to consider, but this might work:

1. Install samba on server
2. Install git on all client workstations (single developer, multiple workstations)
3. Set up a git repository in /var/www/project
4. Directly edit files in /var/www/project vis Samba when developing. This makes the changes testable on the development server.
5. When I'm happy with the changes I've made, use git to commit.

Now I can edit directly on the server AND I get the benefits of versioning, branches, etc...right? I realize this is not a solution in a multi-developer environment, but I believe it would work for just me.

Reply With Quote
  #4  
Old May 20th, 2011, 01:01 AM
Catacaustic's Avatar
Catacaustic Catacaustic is offline
Code Monkey V. 0.9
Dev Shed Intermediate (1500 - 1999 posts)
 
Join Date: Mar 2005
Location: A Land Down Under
Posts: 1,884 Catacaustic User rank is General 12nd Grade (Above 100000 Reputation Level)Catacaustic User rank is General 12nd Grade (Above 100000 Reputation Level)Catacaustic User rank is General 12nd Grade (Above 100000 Reputation Level)Catacaustic User rank is General 12nd Grade (Above 100000 Reputation Level)Catacaustic User rank is General 12nd Grade (Above 100000 Reputation Level)Catacaustic User rank is General 12nd Grade (Above 100000 Reputation Level)Catacaustic User rank is General 12nd Grade (Above 100000 Reputation Level)Catacaustic User rank is General 12nd Grade (Above 100000 Reputation Level)Catacaustic User rank is General 12nd Grade (Above 100000 Reputation Level)Catacaustic User rank is General 12nd Grade (Above 100000 Reputation Level)Catacaustic User rank is General 12nd Grade (Above 100000 Reputation Level)Catacaustic User rank is General 12nd Grade (Above 100000 Reputation Level)Catacaustic User rank is General 12nd Grade (Above 100000 Reputation Level)Catacaustic User rank is General 12nd Grade (Above 100000 Reputation Level)Catacaustic User rank is General 12nd Grade (Above 100000 Reputation Level)Catacaustic User rank is General 12nd Grade (Above 100000 Reputation Level) 
Time spent in forums: 2 Weeks 4 Days 14 h 1 m 42 sec
Reputation Power: 1798
If you are doing the work on the live server the best option that you can have is to use whatever text editor program is on that server to edit the files. You can do this through SSH or remote session or any one of a fair few other options.

Personally, I'd look at setting up and using a REAL dev server for this. That way you can set it up just like your production server, do the changes on there and when they are stable, push them live. This will save you a lot of grief when you do get something wrong that updates/deletes live data (or whatever else). I've done that myself, so I know just how easy it is to destroy things that you didn't want to when you do it like that.

Reply With Quote
Reply

Viewing: Dev Shed ForumsOperating SystemsLinux Help > Version Control (Git) For Web Projects

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap