Dev site error showing up on live site as well
How do I setup a dev site properly with linode? Thanks.
6 Replies
I'm not sure what to do anymore. This is really frustrating as I really need a place to test things.
Thanks.
Let's make sure that you're actually visiting the dev site. Is anything at all different between the two sites? Any chance you're getting silently redirected to the live site, or vice versa? WordPress used to (and still might) point all internal links at the domain where it was originally installed. That was really annoying. I'm not sure whether or not Drupal does something similar, but it's worth checking.
Do you use APC, Memcached, or any other mechanism that might be used to store information in a shared location? Loading website configuration from the database at every request is resource-intensive, so I can imagine web apps trying to cache those things.
Are you sure that the databases are actually different? Try connecting to the dev database manually and change some random data that is safe to change, such as titles of posts. Does the change show up in the dev site, the live site, or both?
Clear your browser cache and cookies. Cookies for mysite.com might affect dev.mysite.com, because cookies often cover all subdomains.
That's all I can think of right now. If all else fails, see if you can separate the two sites by cloning your Linode and putting each site on different Linodes. An extra 512 costs only $0.67 per day, and you can cancel it as soon as you find out what the problem is.