Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How do I start using darcs for a web application (or some other code base) that is already in production?

0
Posted

How do I start using darcs for a web application (or some other code base) that is already in production?

0

It is trivial to start using darcs for an existing web application that has two environments; in my case the environments are testing and production. To get started, I did the following: • Backup everything; it never hurts to have some backups • Do the following in the production environment: • darcs initialize • [optional] add stuff to ignore to the boring file • I had to add a directory var/ to my boring file because I wanted that to be different in all of my repos. Adding the directory to the boring file makes darcs ignore the var/ dir. • darcs add –r ./ • I did this so I could add everything in my production environment to the darcs repository, you might want something different, if so, read the darcs add help. • darcs record –all –look-for-adds • I named my patch ‚”initial revision from production,” • Now the magic: without creating a darcs repository, copy the _darcs directory, in its entirety, from the production environment to the development environment. • Issue the followi

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123