MAMP Loval Server – Opening Build Folder

Hi there

Im trying to get my MAMP PRO local server to display my project on other devices. I have got my localhost happily displaying on my other devices but when i go into a project folder and try access the Build folder my browser attempts to download the link rather than display the project.

I have tested and it is working fine when accessing Raw HTML projects, so I’m wondering if there is something I need to edit in the .htaccess or if I have missed something.

Thanks in advance!

I don’t quite understand what the Build folder is, is that a subpage?

Hi
Ah yes, I can see why this is confusing. I am running my project with codekit so my Build folder is technically my project folder :slight_smile:

Hi sorry, are you able to assist me with this? :slight_smile:

All I can say is that Kirby works out of the box with a standard Mamp Pro installation, even on another device.

But I have no idea to which folder your localhost is pointing, nor if your build folder is a subfolder of this parent folder, or how you are accessing localhost on your other devices.

So given that localhost points to a folder sites somewhere on your Mac, and build is inside this sites folder, then you should be able to access build via http://localhost/`build` on your Mac, and via your Mac’s IP in your network, e.g. http://192.168.178.12/build on devices in your WLAN.

Hi,

Do you have Codekit properly configured to work with dynamic content?

https://codekitapp.com/help/browser-refreshing/

Try configuring Mamp Pro to look at the build folder instead of the source folder (if I understand you correctly). Okay, read all the messages again.
Having worked with codekit and build folders before, you may have trouble because sometimes a build folder is wiped (but not always) after every build? It might be better to do your design first, before integrating it into Kirby, since you wouldn’t want to overwrite the application directories for every build action. But without knowing a bit more information on how you’ve set this up… it’s hard to help.
For example, with CSS files in the assets folder, templates in the templates folder, etc., etc.)… this is all inside the build folder? Along with Kirby?
In my experience I have separated the template and design work from the actually kirby work (activating foreach loops, modifying templates with data, etc.).
Keep us updated.