Home Private Messages Search
CPG Dragonfly™ CMS Dedicated Server & Bandwidth Sponsored by DedicatedNOW
Toggle Content
 
Forums ⇒ CMS (All) ⇒ CVS Info :: Archives ⇒ How to run a CVS automated website to keep updated :: Archived


How to run a CVS automated website to keep updated :: Archived
Global information regarding the state of our CVS and changes committed. Members are only allowed to reply to these topics.
Go to page 1, 2  Next
Post new topic    Revive this topic    Printer Friendly Page     Forum Index ⇒  CVS Info

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

Offline Offline
Joined: Apr 19, 2004
Posts: 5683
Location: http://tinyurl.com/5z8dmv
PostPosted: 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
  1. Extract the attached cvsweb.zip to a local directory
  2. Create an empty directory or use your "root" (public_html)
  3. CHMOD that directory 777 (temporarly)
  4. Upload the extracted files and folder to your website
  5. CHMOD 777 the "CVS" directory and CVS/Entries file
  6. 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
View user's profile Visit poster's website Yahoo Messenger Photo Gallery
DJ Maze
Developer
Developer

Offline Offline
Joined: Apr 19, 2004
Posts: 5683
Location: http://tinyurl.com/5z8dmv
PostPosted: 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.
  1. Use same attachment from above post but now only the contained "CVS" directory
  2. Thru FTP create the directory "modules/Shoutblock" and CHMOD 777 it
  3. Edit the "CVS/Repository" file and change the line into[code]modules/Shoutblock/modules/Shoutblock[/code]
  4. Upload the "CVS" directory to the "modules/Shoutblock" directory and run above mentioned script in that directory
  5. Upload the admin and blocks part from a local CVS and your up and running

  6. 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 Razz

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
View user's profile Visit poster's website Yahoo Messenger Photo Gallery
Phoenix
• Many Posts •
• Many Posts •

Offline Offline
Joined: Apr 19, 2004
Posts: 8799
Location: Netizen
PostPosted: 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
View user's profile Visit poster's website Photo Gallery
DJ Maze
Developer
Developer

Offline Offline
Joined: Apr 19, 2004
Posts: 5683
Location: http://tinyurl.com/5z8dmv
PostPosted: 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
View user's profile Visit poster's website Yahoo Messenger Photo Gallery
Phoenix
• Many Posts •
• Many Posts •

Offline Offline
Joined: Apr 19, 2004
Posts: 8799
Location: Netizen
PostPosted: 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
View user's profile Visit poster's website Photo Gallery
DJ Maze
Developer
Developer

Offline Offline
Joined: Apr 19, 2004
Posts: 5683
Location: http://tinyurl.com/5z8dmv
PostPosted: 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
View user's profile Visit poster's website Yahoo Messenger Photo Gallery
Viperal
Supporter
Supporter

Offline Offline
Joined: May 01, 2004
Posts: 858
Location: New York
PostPosted: Sun Aug 01, 2004 6:12 am
Post subject: Re: How to run a CVS automated website to keep updated

Your serer is the one that would download the files. Unless you want the backup.

What that no Cable Shocked Shocked

did you say 56k Shocked Shocked

_________________
What is The Viperal ?
Email: viperal1 @ gmail.com

Viperal please enter your server specs in your user profile! Crying or Very sad
Back to top
View user's profile Visit poster's website AIM Address MSN Messenger Yahoo Messenger
Phoenix
• Many Posts •
• Many Posts •

Offline Offline
Joined: Apr 19, 2004
Posts: 8799
Location: Netizen
PostPosted: Sun Aug 01, 2004 10:25 am
Post subject: Re: How to run a CVS automated website to keep updated

It was a full production site, so lots of other files uploaded, as well as db changes - oh well, investment in the future. 56k Sad


Phoenix's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Back to top
View user's profile Visit poster's website Photo Gallery
Jeruvy
Security Team
Security Team

Offline Offline
Joined: Apr 23, 2004
Posts: 1432
Location: Canada
PostPosted: 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
View user's profile ICQ Number Yahoo Messenger Photo Gallery
Viperal
Supporter
Supporter

Offline Offline
Joined: May 01, 2004
Posts: 858
Location: New York
PostPosted: 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! Crying or Very sad
Back to top
View user's profile Visit poster's website AIM Address MSN Messenger Yahoo Messenger
Jeruvy
Security Team
Security Team

Offline Offline
Joined: Apr 23, 2004
Posts: 1432
Location: Canada
PostPosted: 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
View user's profile ICQ Number Yahoo Messenger Photo Gallery
Phoenix
• Many Posts •
• Many Posts •

Offline Offline
Joined: Apr 19, 2004
Posts: 8799
Location: Netizen
PostPosted: 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
View user's profile Visit poster's website Photo Gallery
DJ Maze
Developer
Developer

Offline Offline
Joined: Apr 19, 2004
Posts: 5683
Location: http://tinyurl.com/5z8dmv
PostPosted: 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
View user's profile Visit poster's website Yahoo Messenger Photo Gallery
Phoenix
• Many Posts •
• Many Posts •

Offline Offline
Joined: Apr 19, 2004
Posts: 8799
Location: Netizen
PostPosted: 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
View user's profile Visit poster's website Photo Gallery
Jeruvy
Security Team
Security Team

Offline Offline
Joined: Apr 23, 2004
Posts: 1432
Location: Canada
PostPosted: 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
  1. Extract the attached cvsweb.zip to a local directory
  2. Modify config.php to reflect your database settings
  3. Create an empty directory or use your "root" (public_html)
  4. CHMOD that directory 777 (temporarly)
  5. Upload the extracted files and folder to your website
  6. CHMOD 777 the "CVS" directory and CVS/Entries file
  7. 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.
  8. Run the install.php script
  9. 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
View user's profile ICQ Number Yahoo Messenger Photo Gallery
Display posts from previous:   
Post new topic    Revive this topic    Printer Friendly Page    Forum Index ⇒  CVS Info
Page 1 of 2
All times are GMT
Go to page 1, 2  Next

Archive Revive
Username:
This is an archived topic - your reply will not be appended here.
Instead, a new topic will be generated in the active forum.
The new topic will provide a reference link to this archived topic.
 
   Toggle Content User Info

Welcome Anonymous

Nickname
Password
(Register)

   Toggle Content Last CVS commits
· Fixed .ico Expires header.
· Removed domain name from cookies so subdomains wont access them anymore.
· CSS and JS, case insensitives.
· CSS and JS, send correct HTTP 1.1 headers and fixed issues where themes and...
· Further security class improvements.
· 301 redirects on LEO changes
· Option to force 3xx http status codes
· Validate googlebot.com and google.com crawlers.
· CCBot
· Rss with etag and atom.

read more...

   Toggle Content Community

Support for DragonflyCMS in a other languages:

Deutsch
Español

   Toggle Content X-links
UltraEdit Browse Happy logo Firefox MySQL PostgreSQL Valid CSS! Valid XHTML 1.0! Unicode Encoded Badge NukeBiz Resources Raven DragonflyCMS Dedicated Now InsideSupport Lampe Berger

You are seeing squares or questionmarks on this page?

All content of this website is copyrighted by the Creative Commons NC-SA
The logos and trademarks used on this site are the property of their respective owners
We are not responsible for comments posted by our users, as they are the property of the poster.
Our server runs on a P3 1.2GHz with 512MB RAM with no accelerators
Support GoPHP5.org
Interactive software released under GNU GPL, Code Credits, Privacy Policy