TalkPHP
 
 
Account Login
Latest Articles
» The basic usage of PHPTAL, a XML/XHTML template library for PHP
» Vulnerable methods and the areas they are commonly trusted in.
» Simple way to protect a form from bot
» The Basics On: How Session Stealing Works
» How to keep your forms from double posting data
IRC Channel
IRC Speech Bubble Join the friendly bunch on IRC...
(#TalkPHP on Freenode)

...Also available via a web interface.

See this thread for information on the TalkPHP Free Hugs Initiative™. Subject to availability.
Associates
Associates
CSS Tutorials
Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old 03-25-2008, 04:49 PM   #1 (permalink)
The Wanderer
 
Join Date: Dec 2007
Location: The Netherlands
Posts: 13
Thanks: 3
Jelmer is on a distinguished road
Default SVN deployment to server options??

I've just developed a fairly simple application which I plan to extend bit by bit, so obviously it would be a pain to upload it via ftp every time.

I'm also using SVN (on my own computer) to keep revisions of my app and I think it's possible to use that to deploy things to a server automatically. Any ideas about how I can do that??
Jelmer is offline  
Reply With Quote
Old 03-25-2008, 05:03 PM   #2 (permalink)
Moderateur
RegEx Guru PHP Guru Top Contributor Advanced Programmer 
 
Salathe's Avatar
 
Join Date: Apr 2007
Posts: 1,393
Thanks: 5
Salathe is on a distinguished road
Default

You could do an svn checkout if you've got shell access on your web-facing server.
Salathe is offline  
Reply With Quote
Old 03-25-2008, 05:24 PM   #3 (permalink)
The Wanderer
 
Join Date: Dec 2007
Location: The Netherlands
Posts: 13
Thanks: 3
Jelmer is on a distinguished road
Default

thanks for the quick reply! I have a virtual private server which does have SSH I think, I'll do some googling and see if I can find any tutorials on svn checkout with SSH.

edit: some more information might be useful:
The svn repository is located on my own "development" computer
My working copy is on my own computer as well (obviously)
What I want to do is export the files to my "production" server.
Jelmer is offline  
Reply With Quote
Old 03-25-2008, 08:38 PM   #4 (permalink)
The Acquainted
 
wGEric's Avatar
 
Join Date: Nov 2007
Posts: 166
Thanks: 0
wGEric is on a distinguished road
Default

All you have to do is checkout a copy on your web server from your local machine. You may have to change some settings on your router so that the port for svn goes to your computer on your local network. Also set a domain or remember your IP address (outside of your local network. The one the internet sees).

So you do a checkout using the IP to your local computer. After that all you need to do is a svn update to update your website.

Easiest way so you wouldn't have to mess around with IP address and routing ports is to setup SVN on your VPS and use that as your SVN server. Then your production box is checking out from itself and your development box is checking out from the VPS.
__________________
Eric
wGEric is offline  
Reply With Quote
The Following User Says Thank You to wGEric For This Useful Post:
Jelmer (03-26-2008)
Old 03-28-2008, 02:13 PM   #5 (permalink)
The Contributor
 
flyingbuddha's Avatar
 
Join Date: Jan 2008
Location: Birmingham, UK
Posts: 60
Thanks: 10
flyingbuddha is on a distinguished road
Default

You only want to check out if you're going to use that server as a working directory, if you're exporting for a live server use svn export, the automation process is a bit harder, you could set up a cron script to fire the process every so often :s

Edit: Sorry, I misread the original post, my method describes putting the files onto your live server.
__________________
Pro. Geek
http://www.mikeholloway.co.uk
flyingbuddha is offline  
Reply With Quote
The Following User Says Thank You to flyingbuddha For This Useful Post:
Jelmer (03-29-2008)
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT. The time now is 02:12 PM.

 
     

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Inactive Reminders By Icora Web Design