| Topic Archived |
View previous topic :: View next topic |
| Author |
Message |
DJ Maze Developer


Offline Joined: Apr 19, 2004 Posts: 5683 Location: http://tinyurl.com/5z8dmv
|
Posted: Sun Aug 01, 2004 4:09 am Post subject: How to run a CVS automated website to keep updated |
|
If you going to start a fresh website and want to be up to date with the latest CVS and doesn't matter if a bug occurs and you want to notify the developers instantly, then here's your opportunity !!!
We call it cvsweb for now and it's our first attempt to run a CVS controlled DragonflyCMS.
When the system works on different machines we like to make it a admin controlled thing so you can update one modules/add-on at a time, and get info if a file has been updated.
Here's how you run such a website - Extract the attached cvsweb.zip to a local directory
- Create an empty directory or use your "root" (public_html)
- CHMOD that directory 777 (temporarly)
- Upload the extracted files and folder to your website
- CHMOD 777 the "CVS" directory and CVS/Entries file
- Create a file with the following code
| PHP: |
<?php set_time_limit(1200); //exec('C:\Progra~1\tortoisecvs\cvs.exe -q -z6 update -Pd', $log); exec('cvs -q -z6 update -Pd', $log); echo implode("<br/>",$log); echo "\n\nWebsite updated to CVS"; ?>
|
If the PHP fails or it's taking to long you can "update" a directory seperate by using
| Code:: |
cvs -q -z6 update -Pdl |
This will ignore sub-folders and only updates the current folder.
Run the install.php script, then delete the install.php script afterwards note: the file is in the .cvsignore list so it won't be uploaded to your website after you've deleted it.
If you only want to be "up to date" with 1 folder then copy the CVS to that directory and edit the line in the "Repository" file to something like
| Code:: |
html/modules/Your_Account |
IF the "CVS" directory is uploaded to "modules/Your_Account".
Please post your bugs/fixes in Projects.
DJ Maze's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Fedora 15 / 2.2.22 / 5.5.20 / 5.3.10 / CVS
|
|
| Back to top |
|
 |
DJ Maze Developer


Offline Joined: Apr 19, 2004 Posts: 5683 Location: http://tinyurl.com/5z8dmv
|
Posted: Sun Aug 01, 2004 4:15 am Post subject: Re: How to run a CVS automated website to keep updated |
|
How to use CVS ADD-ONS like a module using this ?
That's a bit tricky cos the "admin/modules/*.php" and such can't be updated thru CVS cos the "cvs files" are to restricted as of my knowledge.
But you can update the module itself.
For example Take the shoutblock. - Use same attachment from above post but now only the contained "CVS" directory
- Thru FTP create the directory "modules/Shoutblock" and CHMOD 777 it
- Edit the "CVS/Repository" file and change the line into[code]modules/Shoutblock/modules/Shoutblock[/code]
- Upload the "CVS" directory to the "modules/Shoutblock" directory and run above mentioned script in that directory
- Upload the admin and blocks part from a local CVS and your up and running
That's it
_________________ There are two paths, the short one and the long one.
When you choose the short path you will notice it takes longer then the long path.
So READ the FAQ and Wiki first 
DJ Maze's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Fedora 15 / 2.2.22 / 5.5.20 / 5.3.10 / CVS
|
|
| Back to top |
|
 |
Phoenix • Many Posts •


Offline Joined: Apr 19, 2004 Posts: 8799 Location: Netizen
|
Posted: Sun Aug 01, 2004 4:57 am Post subject: Re: How to run a CVS automated website to keep updated |
|
I get a lot of conflicts and ignores - presumably I will have to empty out all the pre-existing CVS folders from my previous installation?
Phoenix's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
|
|
| Back to top |
|
 |
DJ Maze Developer


Offline Joined: Apr 19, 2004 Posts: 5683 Location: http://tinyurl.com/5z8dmv
|
Posted: Sun Aug 01, 2004 5:38 am Post subject: Re: How to run a CVS automated website to keep updated |
|
| Quote:: |
| If you going to start a fresh website |
So for a switch: Yes remove everything, and ofcourse don't forget to backup your files for reference.
Run the mysql queries from the cpg83.php file because because the installer doesn't work properly yet for upgrades.
DJ Maze's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Fedora 15 / 2.2.22 / 5.5.20 / 5.3.10 / CVS
|
|
| Back to top |
|
 |
Phoenix • Many Posts •


Offline Joined: Apr 19, 2004 Posts: 8799 Location: Netizen
|
Posted: Sun Aug 01, 2004 5:54 am Post subject: Re: How to run a CVS automated website to keep updated |
|
nm - I knew it was for a fresh install and changed accordingly - was just looking for an easy way around doing another install. Not all of us are on cable.
Phoenix's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
|
|
| Back to top |
|
 |
DJ Maze Developer


Offline Joined: Apr 19, 2004 Posts: 5683 Location: http://tinyurl.com/5z8dmv
|
Posted: Sun Aug 01, 2004 6:11 am Post subject: Re: How to run a CVS automated website to keep updated |
|
| Phoenix wrote: |
| nm - I knew it was for a fresh install and changed accordingly - was just looking for an easy way around doing another install. Not all of us are on cable. |
Well you can copy and use it.
After the copy change the permissions on the files and directories thru shell on "how PHP runs" for example
| Code:: |
chown -R nobody:nobody * |
DJ Maze's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Fedora 15 / 2.2.22 / 5.5.20 / 5.3.10 / CVS
|
|
| Back to top |
|
 |
Viperal Supporter


Offline Joined: May 01, 2004 Posts: 858 Location: New York
|
|
| Back to top |
|
 |
Phoenix • Many Posts •


Offline Joined: Apr 19, 2004 Posts: 8799 Location: Netizen
|
|
| Back to top |
|
 |
Jeruvy Security Team


Offline Joined: Apr 23, 2004 Posts: 1432 Location: Canada
|
Posted: Sun Aug 01, 2004 3:17 pm Post subject: Re: How to run a CVS automated website to keep updated |
|
I'm running out of space...how much will this take up (beyond the regular files, etc..)?
_________________ J.
j e r u v y a t y a h o o d o t c o m
Need help? Look here: www.dragonflycms.org/W...d=112.html
Need to chat? Look for me on irc.freenode.net
Jeruvy's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Ubuntu7.10/Debian3.1 - 2.2.3/1.3.37 - 5.0.38/4.0.27 - 5.2.1/4.4.7 - CVS/9.1.2}
|
|
| Back to top |
|
 |
Viperal Supporter


Offline Joined: May 01, 2004 Posts: 858 Location: New York
|
Posted: Sun Aug 01, 2004 3:47 pm Post subject: Re: How to run a CVS automated website to keep updated |
|
it should just be the regular files and a few small file that say what file version the files are, should never be over a mb, a few 100kbs at the most.
_________________ What is The Viperal ?
Email: viperal1 @ gmail.com
Viperal please enter your server specs in your user profile!
|
|
| Back to top |
|
 |
Jeruvy Security Team


Offline Joined: Apr 23, 2004 Posts: 1432 Location: Canada
|
Posted: Sun Aug 01, 2004 4:29 pm Post subject: Re: How to run a CVS automated website to keep updated |
|
I think I can handle that. Thanks!
_________________ J.
j e r u v y a t y a h o o d o t c o m
Need help? Look here: www.dragonflycms.org/W...d=112.html
Need to chat? Look for me on irc.freenode.net
Jeruvy's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Ubuntu7.10/Debian3.1 - 2.2.3/1.3.37 - 5.0.38/4.0.27 - 5.2.1/4.4.7 - CVS/9.1.2}
|
|
| Back to top |
|
 |
Phoenix • Many Posts •


Offline Joined: Apr 19, 2004 Posts: 8799 Location: Netizen
|
Posted: Mon Aug 02, 2004 4:52 pm Post subject: Re: How to run a CVS automated website to keep updated |
|
CVS update works fine, but cannot upload any other files to the site through ftp.
Is there something in CVS settings that causes this?
Phoenix's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
|
|
| Back to top |
|
 |
DJ Maze Developer


Offline Joined: Apr 19, 2004 Posts: 5683 Location: http://tinyurl.com/5z8dmv
|
Posted: Mon Aug 02, 2004 5:27 pm Post subject: Re: How to run a CVS automated website to keep updated |
|
Hmm probably the PHP on your system runs a "nobody" but your account isn't allowed to delete/overwite files from ""nobody" and you're not allowed to upload files to directories which are owned by "nobody"
Ask host for a proper account setup.
DJ Maze's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Fedora 15 / 2.2.22 / 5.5.20 / 5.3.10 / CVS
|
|
| Back to top |
|
 |
Phoenix • Many Posts •


Offline Joined: Apr 19, 2004 Posts: 8799 Location: Netizen
|
Posted: Mon Aug 02, 2004 5:49 pm Post subject: Re: How to run a CVS automated website to keep updated |
|
Okay, will do,
User/Group nobody(99)/99
_________________ • DonationsPro for DragonflyCMS, SMF, MyBB, vBulletin •
Phoenix's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
|
|
| Back to top |
|
 |
Jeruvy Security Team


Offline Joined: Apr 23, 2004 Posts: 1432 Location: Canada
|
Posted: Mon Aug 02, 2004 9:33 pm Post subject: Re: How to run a CVS automated website to keep updated |
|
| jeruvy wrote: |
| DJMaze wrote: |
Here's how you run such a website- Extract the attached cvsweb.zip to a local directory
- Modify config.php to reflect your database settings
- Create an empty directory or use your "root" (public_html)
- CHMOD that directory 777 (temporarly)
- Upload the extracted files and folder to your website
- CHMOD 777 the "CVS" directory and CVS/Entries file
- Create a file with the following code[php]<?php
set_time_limit(1200);
//exec('C:\Progra~1\tortoisecvs\cvs.exe -q -z6 update -Pd', $log);
exec('cvs -q -z6 update -Pd', $log);
echo implode("<br/>",$log);
echo "\n\nWebsite updated to CVS";
?>[/php]IF the PHP fails or it's taking to long you can "update" a directory seperate by using[code]cvs -q -z6 update -Pdl[/code]This will ignore sub-folders and only updates the current folder. - Run the install.php script
- Delete the install.php script afterwards note: the file is in the .cvsignore list so it won't be uploaded to your website after you've deleted it. You can always get a fresh copy here
|
Ok lets see if I got this right.
1. Done, I simply ftp'd the cvs dir and the .cvsignore file.
2. Not done as config.php already in place and working.
3. Create a blank dir or use root? I didn't get this, since the install is in a subdir I didn't know what to do.
4. Not done as I didn't create one.
5. Uploaded ok.
6. chmod 777 the cvs dir
7. Created a file, but didn't know what to call it. I called it cvs.php
8. I then loaded this file and it quickly responded with Website updated to CVS.
9. I then ran install.php but it breaks. "Good you've made the ..." and tells me my current version is 8.2 No links, no buttons just a dead end.
??? |
No editing posts...please review corrections in this post.
_________________ J.
j e r u v y a t y a h o o d o t c o m
Need help? Look here: www.dragonflycms.org/W...d=112.html
Need to chat? Look for me on irc.freenode.net
Jeruvy's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Ubuntu7.10/Debian3.1 - 2.2.3/1.3.37 - 5.0.38/4.0.27 - 5.2.1/4.4.7 - CVS/9.1.2}
|
|
| Back to top |
|
 |
|
|