By sjames on
drupal-4.6.4
I'm trying to make a sandbox site for testing and experimenting before publishing to my production site at http://www.shreemaa.org
I have made this sandbox site http://www.shreemaa.org/drupal.dev which points to a database called drupal-dev
the correct database and drupal tree are configured in settings.php
however, if I make any changes, the changes hit my production database, drupal.
does anyone know how to get around this so that I only make the changes in drupal-dev database?
please help.
thanks.
susan
Comments
Hi, Make sure that your
Hi,
Make sure that your production site is not using the dev database? :)
Perhaps this might be of help in figuring out what's happening:
a) Go to
?q=node/add/story.b) Enter a random title, and choose the "PHP filter" as the input format.
c) In the body, type:
d) Click Preview.
e) You should be able to see the database string from settings.php on your screen.
hth,
-K
devel database...
drupal-4.6.4
I ran the php code to see what database is being used for the production site.
the correct database is being used. settings.php
then, I ran the php code on the devel site to see what database is being used, and the correct devel database is being used. settings.php
so, all is correct. both databases are correct in the production and development site.
is there anything else I can check?
I don't know why my changes in the development site are being published in the production site.
any other ideas?
I hope someone can help.
susan
sites/ Subfolder
In which subfolder do you have the -dev settings.php? Its path should be sites/www.shreemaa.org.drupal.dev/settings.php, I think.
settings.php
the dev settings.php *is* in drupal.dev/sites/default/settings.php
any other clues?
susan
settings.php
You might want to avoid using the default/ folder. Drupal tries a lot of other combinations before it tries default/. It also might be easier to use drupal-dev instead of drupal.dev, because the period means something special when Drupal parses the URL to find settings.php.
Here's how to set up the sites directory assuming shreemaa.org/drupal and shreemaa.org/drupal-dev both point to www/drupal/ on your filesystem.
Production:
www/drupal/sites/shreemaa.org.drupal/settings.php
Development:
www/drupal/sites/shreemaa.org.drupal-dev/settings.php
If you have a different setup and this doesn't work, please clarify your setup for me.