I'm trying to help a co-worker configure a Drupal site so that we can deploy the same site upstream without making database changes. We're having trouble with file paths. Here's what I have:
- A Nginx webroot pointing to the root of my Drupal 7 (in this case) install (
- The content for this site is in
- A symlink exists in
dev-my-site -> /opt/www/dev-my-site
Because of some sharing that's going on, there are multiple versions of
my-site on the box, so they have to have different symlink names. Right now, the "file system path" is set to
sites/dev-my-site/files which breaks when moved upstream.
We're both inexperienced with Drupal and trying to help out a client. Upstream we get this:
Fatal error: require_once() [function.require]: Failed opening required '/opt/frameworks/drupal-7.15/sites/www.productionurl.com/modules/entity/includes/entity.inc' (include_path='.:/usr/share/php:/usr/share/pear') in /opt/frameworks/drupal-7.15/includes/bootstrap.inc on line 3084
At each point in the deployment process (dev, staging, production), the path will be slightly different. For example,
.../sites/myclient.com/modules/.... When I deploy, what do I need to change to ensure that this works?
In Drupal 6, I was able to set the
file_directory_path variable in
settings.php, but that doesn't seem to be an option in Drupal 7. What's the alternative? Is there one?