Thursday, January 04, 2007

Webserver Updates

The last time I talked about my new webserver machine I said that I was hoping to get it sorted so that I can host more than one website on it. Well, now it is hosting two websites just fine, so I've got that sorted out. It was actually easy to do as the instructions I followed to get it working with one website also let it work with more than one website as you just have to create a link to a file in the right place and it works correctly.

I've also got Subversion running on it as well, but I had to install an older version of the webserver software to get it to work. This isn't a problem as I was actually expecting that, but it's all working fine so I'm going to leave it at that.

On another topic (and a technical topic), when editing the file that make up the website I was first editing them on my main computer, checking them into subversion, then updating the website on the webserver computer from subversion (via a ssh shell), then finally checking it out in my browser on my main computer. Then I switched to just using the ssh shell to edit the files I wanted using nano, saving, then just checking them in my browser. Today I went looking to see if there was a ssh/sftp plugin for Eclipse (the IDE I was using to edit the website files when they were on my main computer) that would allow me to remotely edit the files in an environment I was comfortable with. I finally found one, so now I just have to get Eclipse to connect to the webserver machine then I can start changing the files and they're updated on the webserver machine whenever I hit save. All I have to do now is save and then refresh in my browser to see the changes. It's the same number of steps as the ssh shell and nano route, but with that route I had to have a few ssh shells open to be able to easily switch between files. With Eclipse all the files are in a single window which makes it all a lot easier.

0 comments: