Sandbox

Ah! Good points! And it makes me think: We should set up a Subversion repository with the entire oehive.org directory - all of the Drupal code and modules.

This will be handy when we need to hack Drupal itself, as I've already had to do in a very trivial way for totalfeeds.module.

Developers should work with new modules and configuration locally, before committing their changes.

We'll promote new changes to a test/sandbox, where everybody can work with common test data online.

I wonder if we could put the oehive.org subdirectory under Subversion control? We'd have to instruct Apache to disallow access to .svn directories. Then, we could use the command-line svn commands for applying patches and updates to oehive.org.

Then, as you say, we'd have devel -> test -> production, but with devel being a different local workspace on each developer's machine.

I was thinking that "http://sandbox.oehive.org/" would be good.

This is good Hive forum material. I hope you don't mind me quoting you. :)

Oh, hmm. I just thought of one reason that sandbox.oehive.org will be very important - people's local machines will be running different versions of Apache, MySQL, and PHP. That makes a big difference - I think a MySQL or PHP version issue was giving me some errors from that totalfeeds module I installed. If I only tried it local, I might not have seen it.

Jurjen Dijkstra wrote:
> It depends on the upgrade. For example, security upgrades can usually be
> installed directly, but code hacks are safer AND easier in a sandbox.
> For example, yesterday I have done a quick install of Drupal on my local
> computer for easier experimenting with the
> style.css. Because it is a local computer I can just edit the CSS file
> in TopStyle and immediately see the usually bad result, without having
> to upload the new CSS and have you wondering why the tabs jump up and
> down :-)
>
> We have already experienced that some settings cannot be reversed (like:
> existing projects break when you install Og and specify that each
> project is also a group). So, maybe we should indeed have a sandbox to
> try new modules or scary settings.
>
> When I hack PHP it's just trial and error, and I never get it right the
> first time. Maybe I should try the Zend development environment or the
> (free) PHP plugins for Eclipse, to get extra help and debuggers etc. But
> that also means I have to install Drupal on Windows.
> In that case, I'd have a local devel workspace, which you can't see. So
> if I hack something and want to show it to you, I would have to install
> my new code to some public domain for your feedback. That would mean we
> indeed have devel -> test -> production.
>
>


Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
jurjen's picture

Sandbox and subversion

Smart plan, to have an SVN repository for oehive.org itself. I think I would not include the subdirectories for file uploads.

Do you really have to block .svn directories in Apache?
When the devel and test workspaces are under version control, and oehive.org is just a deployed release then I would think that there are no .svn control dirs. But we would have to make sure that nobody ever adds or edits anything in oehive.org directly.

But what about settings that are stored in the database? Those cannot be controlled by SVN...


john's picture

Re: Sandbox and subversion

> Smart plan, to have an SVN repository for oehive.org itself. I think I
> would not include the subdirectories for file uploads.

Right, for sure. That's a backup issue, not a version control issue.

> Do you really have to block .svn directories in Apache?

Maybe not. It looks like maybe Drupal sets things up so none of the subdirectories are really visible anyway. I'm no expert, so I'd just want to double-check that there wouldn't be any issues.

> When the devel and test workspaces are under version control, and
> oehive.org is just a deployed release then I would think that there are
> no .svn control dirs. But we would have to make sure that nobody ever
> adds or edits anything in oehive.org directly.

I'd been thinking of making oehive.org a controlled directory, so that patches could be easily applied, without having to do a full export.

> But what about settings that are stored in the database? Those cannot be
> controlled by SVN...

Yah. Maybe we need Roundtable. Heh. I don't know - I think we'll just have to keep notes; maybe we can keep some notes under version control, or keep some SQL table dumps under version control.