2

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.

1 Answer 1

3

Here's a multi environment config 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.

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

1
  • Very cool solution, thanks for pointing it out! Jul 20, 2017 at 14:12

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.