Hello-
I want to install version control on both a shared Bluehost server and a dedicated Hostgator server, sites on both I manage with DW CS5.5.
I've read the help articles but it seems they are targeted at installing svn on your local machine, and I want to install it on my remote servers. I realize this is not a Dreamweaver specific question but wondered if there are any obvious paths to this someone might know of.
I do have svn installed on my bluehost server, but haven't yet been able to figure out how to set up a repository there yet. So when I do
svn --version, it shows me all the version info, indicating it was successfully installed, but I haven't been able to set up a repo yet, via ssh. Can this be done in DW or do I have to get it done via SSH on the server first, then set the path to it in the version control tab of the site set up/management tabs AFTER I accomplish setting it up via SSH on the server first?
Thanks very much in advance...
Laura
You can definitely connect to a remote Subversion server. In fact, I am not sure why you would want to connect one on your own machine unless it was acting as a server.
You'll need to check with Bluehost for specific instructions to create a repo. For example, with some hosts, there will be a place to do this when you log into your account on the host's website.
If you're planning to connect to your repo from Dreamweaver using SSH (instead of, for example, HTTPS), then you'll need to configure a public/private key pair for authentication and specify some configuration settings. This article has intructions for one way of accomplishing this: http://helpx.adobe.com/dreamweaver/kb/configure-subversion-ssh-dreamwe aver-cs4.html
Check the "Use Subversion" section of this article for more info, including how to connect using other protocols (like HTTPS): http://help.adobe.com/en_US/dreamweaver/cs/using/WSc78c5058ca073340dcd a9110b1f693f21-7ebfa.html#WS80FE60AC-15F8-45a2-842E-52D29F540FED
@carey burgess thanks-
I was planning on just doing via http/webDav not ssh.
I've got it installed now on both bluehost (shared server) and hostgator (dedicated server) but got stuck on creating the repo directory. I get the error message:
Type 'svn help' for usage.
juicyserveradmin@jui [~/svn]# svnadmin create /home/juicyhot/repos
svnadmin: Repository creation failed
svnadmin: Could not create top-level directory
svnadmin: Can't create directory '/home/juicyhot/repos': Permission denied
juicyserveradmin@jui [~/svn]# chmod -R 755 svn
chmod: cannot access `svn': No such file or directory
juicyserveradmin@jui [~/svn]# chmod -R 755 ~/svn
juicyserveradmin@jui [~/svn]# svnadmin create ~svn/repos
svnadmin: Repository creation failed
svnadmin: Could not create top-level directory
svnadmin: Can't create directory '~svn/repos': No such file or directory
juicyserveradmin@jui [~/svn]# svn admin create /repos
Unknown command: 'admin'
Type 'svn help' for usage.
juicyserveradmin@jui [~/svn]# svnadmin create /repos
svnadmin: Repository creation failed
svnadmin: Could not create top-level directory
svnadmin: Can't create directory '/repos': Permission denied
Both bluehost and hostgator support say "can't help you, 3rd party, out of scope".
Any suggestions to try to get the repo directory installed properly and the path to it set in DW? I'm so close! :-)
Thanks
Laura
So here is where I am with it if you have any suggestions I'd appreciate it:
Hostgator tech support helped me get it back to 1.7.5 (no explanation for how it became 1.6 after I installed and verified 1.7.5, odd)
So here was the interaction but I'm still (stupidly I'm sure) stuck:
From tech support:
You *should* be able to communicate with a SVN 1.7.5 server with a svn 1.6 client without issue.
1) When I run svn --version on your , I show version 1.7.5:
[~]# svn --version
svn, version 1.7.5 (r1336830)
compiled Jun 28 2012, 22:37:11
Yes, the user and password for SVN must be set up within svn. Here is a brief outline of setting up a repository.:
First, create the repository:
-----------------------
svnadmin create ~/myrepository
Edit the configuration file for the newly created reposiroty:
-----------------------
nano ~/myrepository/conf/svnserve.conf
Add the following, presuming you want no anonymouse access and write access for authenticated users:
------------------------
anon-access = none
auth-access = write
password-db = passwd
Open up the passwd file to create it and ready it for editing:
-----------------------
nano ~/myrepository/conf/passwd
Add your password to it like so:
-----------------------
exampleuser = examplepassword
Import your project to it (if any):
-----------------------
svn import /path to your project/myD5project file:///home/juicyserveradmin/myrepository
Start and daemonize the svn server:
----------------------
svnserve -d
You should now be able to check out your project from DreamWeaver.
4) SVN typically runs on port 3690. Port 2223 is your SSH port. If DreamWeaver allows your to connect to SVN via SSH, then it will be over port 2223 - in this case you would need ot provide your SSH login credentials.
--
What I'm still stuck on:
I added the repo as he said, ~/repos
I added two users/passwords to the file (not sure how to confirm I did it right though)
I'm stuck on this step:
svn import /path to your project/myD5project file:///home/juicyserveradmin/myrepository
Here is how it's set up now, if you could help me think through what makes sense I'd really appreciate it.
I've got my live site, example.com
We've been doing all of our development work live on the front end which is of course a terrible idea and constantly causes issues where problems are showing up live.
So i set up dev.example.com which is within the main example.com directory called /dev and as a subdomain.
I also set up /dev2 the same way.
The only difference is that /dev is set on cron to have all of example.com main files copy to it once a day, so it stays more or less in sync.
/dev2 is not being synced that way.
My idea was then I've got two dev folders we can do work in, one that syncs and one that stays static.
I want to have svn working for all 3....the live site, the /dev and the /dev2.
So would I need to create repos in each of those 3? Or just one repo? file names would be the same in all three so it seems like there would need to be repolive, repodev , repodev2 or something like that?
I want the same user/pass at the moment for all 3.
Then I'm back to not quite sure how to set that up in DW, and, what to import into each if that's the best way to do it?
Also I was confused about the path command above.
In the scenario above can you create that path for me to see exactly how I should paste it in if I do three repos, if, and please tell me, if doing it that way even makes sense?
For DW server settings, is the sever address the IP address of my dedicated server?
And I'm not sure what to put for Repository Path given the questions above.
Thanks again for your patience and help...
--
Also:
I see from this link
http://civicactions.com/blog/2010/may/25/how_set_svn_repository_7_simp le_steps
That I would maybe want to set up different directories within the /repos directory for the three versions of the site, live, dev and dev2?
I'm still confused about the format of the path.
Would it be like
svn mkdir file:///nameofmyhomedir/repos/live
svn mkdir file:///nameofmyhomedir/repos/dev
svn mkdir file:///nameofmyhomedir/repos/dev2
Where I want the directories to be named live,dev and dev2?
Can you correct that path for me if that's not quite right?
---
I do see in DW now for my local site that I've got + next to all the files after setting up the Version Control server, but, because I don't have the path to the repo right I guess or the server address right...it says it can't connect:
Access: Subversion
Protocol: SVN
Server Address: My IP address?
Repository Path: Not sure if I did ~/repos what the full path to it on my server is?
Server Port: 3690
username/pass what I set up in the file according to his directions.
Can you steer me towards dialing this in right pretty please?
Thanks in advance for any help.
North America
Europe, Middle East and Africa
Asia Pacific