Skip to content

Commit

Permalink
Fix some warmshowers.dev/wsupg.dev instances in docs, settings.local.…
Browse files Browse the repository at this point in the history
…php.example
  • Loading branch information
rfay committed Sep 17, 2015
1 parent afd6322 commit 72cb199
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 21 deletions.
3 changes: 2 additions & 1 deletion docroot/sites/default/settings.local.php.example
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ $databases = array (
);

$conf['stage_file_proxy_origin'] = 'https://www.warmshowers.org';
$conf['stage_file_proxy_origin_dir'] = 'files';

$conf['reroute_email_enable'] = TRUE;
$conf['reroute_email_address'] = $dev_email;
Expand Down Expand Up @@ -60,5 +61,5 @@ $conf['user_location_adv_cycling_kmz'] = 'http://' . $conf['site_name'] . '/site
$conf['mandrill_incoming_failure_forward_email'] = $dev_email;

$update_free_access = TRUE;
error_reporting(-1);
error_reporting(-1);

35 changes: 15 additions & 20 deletions resources/development_docs/ws_development_env.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,23 +74,23 @@ The files directory has user pictures and some other random things. In general i
way too much work to download and use a files tarball, so we use the excellent
[stage_file_proxy](https://drupal.org/project/stage_file_proxy) to fill the gap.
This module points at Warmshowers.org to get and display pictures from there.
It does not work for everything, and at this writing is not working for anything
in the D7 upgrade.
It may not work for everything, but works pretty well currently, even with user
pictures. Your mileage may vary.

### Add hostnames into /etc/hosts

I use the hostname warmshowers.dev (and es.warmshowers.dev, fr.warmshowers.dev,
I use the hostname wsupg.dev (and es.wsupg.dev, fr.wsupg.dev,
etc.) to access the site. You'll need to add those to your local hosts file.

My hosts file has this stanza:

```
127.0.0.1 warmshowers.dev
127.0.0.1 es.warmshowers.dev www.warmshowers.dev
127.0.0.1 fr.warmshowers.dev
127.0.0.1 pt.warmshowers.dev
127.0.0.1 de.warmshowers.dev
127.0.0.1 it.warmshowers.dev
127.0.0.1 wsupg.dev
127.0.0.1 es.wsupg.dev www.wsupg.dev
127.0.0.1 fr.wsupg.dev
127.0.0.1 pt.wsupg.dev
127.0.0.1 de.wsupg.dev
127.0.0.1 it.wsupg.dev
```

### Add configuration for the site to Apache
Expand All @@ -105,12 +105,12 @@ I use something like this:
```
NameVirtualHost *
<VirtualHost *>
ServerName warmshowers.dev
ServerAlias *.warmshowers.dev
ServerAdmin randy@randyfay.com
ServerName wsupg.dev
ServerAlias *.wsupg.dev
ServerAdmin nobody@nowhere.com
DocumentRoot /Users/rfay/workspace/warmshowers/docroot
<Directory /Users/rfay/workspace/warmshowers/docroot>
DocumentRoot /Users/rfay/workspace/wsupg/docroot
<Directory /Users/rfay/workspace/wsupg/docroot>
Options FollowSymLinks
AllowOverride All
Order allow,deny
Expand All @@ -129,7 +129,7 @@ Restart apache to make it read the configuration. On most systems this would be
### Setup a Drush alias for the site (Optional)

To facilitate development using Drush, it's useful to have a Drush alias for
interacting with the site, so you can run `drush @warmshowers.dev status`
interacting with the site, so you can run `drush @wsupg.dev status`
instead of having to `cd` into the warmshowers directory to use Drush.

1. Copy the file in `/assets/rebuild/warmshowers.aliases.drushrc.php` to `~/
Expand Down Expand Up @@ -185,11 +185,6 @@ hardware.

Windows users: use caution as the above has been tested only in Linux and Mac OS X.

### Automated tests

Check out `docroot/sites/default/behat-tests` for more information on running
tests for the Warmshowers dev environment.

### Notes

* Warmshowers.org developers have access to a free copy of the excellent
Expand Down

0 comments on commit 72cb199

Please sign in to comment.