Software Design
 
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 ForumsProgramming Languages - MoreSoftware Design

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 August 21st, 2012, 05:12 PM
airforcemook airforcemook is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2012
Location: Holloman AFB, NM
Posts: 21 airforcemook User rank is Second Lieutenant (5000 - 10000 Reputation Level)airforcemook User rank is Second Lieutenant (5000 - 10000 Reputation Level)airforcemook User rank is Second Lieutenant (5000 - 10000 Reputation Level)airforcemook User rank is Second Lieutenant (5000 - 10000 Reputation Level)airforcemook User rank is Second Lieutenant (5000 - 10000 Reputation Level)airforcemook User rank is Second Lieutenant (5000 - 10000 Reputation Level)airforcemook User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 2 h 49 m 5 sec
Reputation Power: 0
Red face "Easy" web development?

I hope this is the right forum for this type of question, as I couldn't find one that seemed "right."

I'm still relatively new to web development and I'm having issues keeping commonality between my dev pc (at home, Win 7) and my VPS (Server 2008).

I've found I can do things to help, such as:
- map folders to drives (U:, P:, etc.) so that scripts can ignore absolute file locations
- use the exact same version of WAMP and FileZilla

If I make a large number of changes I may have to:
- Upload all php code / files
- Dump, upload, and then re-import database
- Change FTP username/passwords
- Change apache config
- etc.
... this can quickly become a very tedious process just to match what I have on the dev side.

I'm using WAMP, so I figure that maybe I can stop services and just upload the entire root directory of WAMP (which contains all apps & code, such as MySQL and my php files) to overwrite data / users / etc. By only uploading modified files this would be rather quick, I'd think. Additionally, my VPS is not web-accessible as-of-yet so I'm not too worried about momentary outages.

I feel like the development is probably less complicated than I'm making it. All I'm trying to do is deploy a "snapshot" of all my website-related code / configuration / data to the VPS. I'm thinking there's a way to do this efficiently that I'm simply not grasping.

Really, I'm just trying to make development "easy"-ish. I make changes, I run something (maybe a bat/php script?) and the VPS is updated to my DEV state.

I hope this rambling even makes sense! Any help is greatly appreciated.

Reply With Quote
  #2  
Old August 21st, 2012, 06:15 PM
E-Oreo's Avatar
E-Oreo E-Oreo is offline
Lost in code
Dev Shed God 7th Plane (8000 - 8499 posts)
 
Join Date: Dec 2004
Posts: 8,052 E-Oreo User rank is General 92nd Grade (Above 100000 Reputation Level)E-Oreo User rank is General 92nd Grade (Above 100000 Reputation Level)E-Oreo User rank is General 92nd Grade (Above 100000 Reputation Level)E-Oreo User rank is General 92nd Grade (Above 100000 Reputation Level)E-Oreo User rank is General 92nd Grade (Above 100000 Reputation Level)E-Oreo User rank is General 92nd Grade (Above 100000 Reputation Level)E-Oreo User rank is General 92nd Grade (Above 100000 Reputation Level)E-Oreo User rank is General 92nd Grade (Above 100000 Reputation Level)E-Oreo User rank is General 92nd Grade (Above 100000 Reputation Level)E-Oreo User rank is General 92nd Grade (Above 100000 Reputation Level)E-Oreo User rank is General 92nd Grade (Above 100000 Reputation Level)E-Oreo User rank is General 92nd Grade (Above 100000 Reputation Level)E-Oreo User rank is General 92nd Grade (Above 100000 Reputation Level)E-Oreo User rank is General 92nd Grade (Above 100000 Reputation Level)E-Oreo User rank is General 92nd Grade (Above 100000 Reputation Level)E-Oreo User rank is General 92nd Grade (Above 100000 Reputation Level)  Folding Points: 945 Folding Title: Novice Folder
Time spent in forums: 2 Months 1 Day 5 h 6 m 34 sec
Reputation Power: 7104
It's sounds like you're not using version control software, which is probably the number one thing you can do to make it easier.

If your software is written well, the absolute file locations shouldn't matter at all. The server version shouldn't matter much either as it's pretty rare for PHP or MySQL to introduce backwards incompatible changes.

Handling the database is the trickiest part. Most projects that I've seen start with a common base schema and then apply patches to it. The patches are SQL statements that are committed into version control and then run against the database when you update a working copy. Often a list of already-executed patches is stored in the database and a script is used to apply new ones.

You shouldn't be sharing FTP usernames and passwords between environments.

Your Apache config shouldn't change frequently either.
__________________
PHP FAQ
How to program a basic, secure login system using PHP
Connect with me on LinkedIn


Quote:
Originally Posted by Spad
Ah USB, the only rectangular connector where you have to make 3 attempts before you get it the right way around

Reply With Quote
  #3  
Old August 21st, 2012, 06:53 PM
airforcemook airforcemook is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2012
Location: Holloman AFB, NM
Posts: 21 airforcemook User rank is Second Lieutenant (5000 - 10000 Reputation Level)airforcemook User rank is Second Lieutenant (5000 - 10000 Reputation Level)airforcemook User rank is Second Lieutenant (5000 - 10000 Reputation Level)airforcemook User rank is Second Lieutenant (5000 - 10000 Reputation Level)airforcemook User rank is Second Lieutenant (5000 - 10000 Reputation Level)airforcemook User rank is Second Lieutenant (5000 - 10000 Reputation Level)airforcemook User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 2 h 49 m 5 sec
Reputation Power: 0
I was hoping that wouldn't get brought up. I've tried GIT previously and it made things even worse. I quickly uninstalled it.

Reply With Quote
  #4  
Old August 21st, 2012, 06:57 PM
E-Oreo's Avatar
E-Oreo E-Oreo is offline
Lost in code
Dev Shed God 7th Plane (8000 - 8499 posts)
 
Join Date: Dec 2004
Posts: 8,052 E-Oreo User rank is General 92nd Grade (Above 100000 Reputation Level)E-Oreo User rank is General 92nd Grade (Above 100000 Reputation Level)E-Oreo User rank is General 92nd Grade (Above 100000 Reputation Level)E-Oreo User rank is General 92nd Grade (Above 100000 Reputation Level)E-Oreo User rank is General 92nd Grade (Above 100000 Reputation Level)E-Oreo User rank is General 92nd Grade (Above 100000 Reputation Level)E-Oreo User rank is General 92nd Grade (Above 100000 Reputation Level)E-Oreo User rank is General 92nd Grade (Above 100000 Reputation Level)E-Oreo User rank is General 92nd Grade (Above 100000 Reputation Level)E-Oreo User rank is General 92nd Grade (Above 100000 Reputation Level)E-Oreo User rank is General 92nd Grade (Above 100000 Reputation Level)E-Oreo User rank is General 92nd Grade (Above 100000 Reputation Level)E-Oreo User rank is General 92nd Grade (Above 100000 Reputation Level)E-Oreo User rank is General 92nd Grade (Above 100000 Reputation Level)E-Oreo User rank is General 92nd Grade (Above 100000 Reputation Level)E-Oreo User rank is General 92nd Grade (Above 100000 Reputation Level)  Folding Points: 945 Folding Title: Novice Folder
Time spent in forums: 2 Months 1 Day 5 h 6 m 34 sec
Reputation Power: 7104
If it made things worse then you were using it wrong, but GIT is not an easy version control system to use so I'm not too surprised. You might have better luck with Subversion and TortoiseSVN if it's your first time working with version control systems, they are a lot friendlier.

Basically you have a checkout of the repository on your development machine and a checkout on your production machine. In the simplest use-case, you commit changes from your development copy to the repository, then when you're ready to deploy you update your production copy from the repository.

Last edited by E-Oreo : August 21st, 2012 at 07:00 PM.

Reply With Quote
  #5  
Old October 4th, 2012, 06:04 AM
TheTechguys TheTechguys is offline
Permanently Banned
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2012
Posts: 8 TheTechguys User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 59 m 49 sec
Warnings Level: 10
Number of bans: 1
Reputation Power: 0
Web development is a broad term for the work involved in developing a web site for the Internet or an intranet . This can include web design, web development content, and client communication, programming client-side/server-side, web server and network security configuration, and e-commerce development. However, among the professionals on the Internet, "web development" usually refers to the non-core aspects of building design Web sites: writing descriptions and coding. Web development can range from developing the simplest static single page of plain text to the most complex Internet applications on the Internet, and e-business, or social network services.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreSoftware Design > "Easy" web development?

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