<p>Here's a <a href="https://github.com/nystudio107/craft-multi-environment" rel="nofollow noreferrer">multi environment config</a> guide that I think will accomplish all you need. </p>

<p>It allows for environment specific DB connection parameters, but can also set filepaths, that why you can keep your assets path relative in regards to the path set in the environment. </p>

<p>It's an extension to the multi-environment setup as discussed <a href="https://craftcms.com/docs/multi-environment-configs" rel="nofollow noreferrer">here</a>.</p>

<p>If you have any questions after reading that, feel free to ask. </p>

CC BY-SA 3.0
2017-07-20T14:12:37.173Z
Very cool solution, thanks for pointing it out!
Marco Schuler
CC BY-SA 3.0
2017-07-20T14:04:40.707Z
2017-07-20T17:03:42.860Z
2017-07-20T17:03:42.860Z
mrsmn
<p>Me and my coworker work on the same Craft project.</p>

<p>We work locally with MAMP but access the database online, which works fine.</p>

<p>For the assets I'd like to define separate localhost basepaths, since we don't have the same folder structure.</p>

<p>Is there a way to make this work or do I need to work with IP's instead of localhost?</p>

<p>I'd also be open to set the assets relative instead of absolute to make this work.</p>

<assets><config><multi-environment>
Multiple localhost config settings
# Multiple localhost config settings

(Asked by: username_0 on 2017-07-20)

Me and my coworker work on the same Craft project.

We work locally with MAMP but access the database online, which works fine.

For the assets I'd like to define separate localhost basepaths, since we don't have the same folder structure.

Is there a way to make this work or do I need to work with IP's instead of localhost?

I'd also be open to set the assets relative instead of absolute to make this work.

**Tags:** assets, config, multi-environment


---

## 1 answers

### Answer by username_1 on 2017-07-20. Score: 3 | Accepted answer

Here's a [multi environment config](https://github.com/nystudio107/craft-multi-environment) guide that I think will accomplish all you need.

It allows for environment specific DB connection parameters, but can also set filepaths, that why you can keep your assets path relative in regards to the path set in the environment.

It's an extension to the multi-environment setup as discussed [here](https://craftcms.com/docs/multi-environment-configs).

If you have any questions after reading that, feel free to ask.

> **Comments:**
> **username_0**: Very cool solution, thanks for pointing it out!  

---

