![]() | Running EE locally as in the screencasts? |
|
04 Aug 2008, 21:58
Antony Gravett (6 posts) |
[ Dave Thomas suggested I promote this to be its own topic here ] It would be very helpful if Ryan could describe how he configured his MacOS machine to be an EE server in this screencast scenario. Not all of us are very knowledgeable about this aspect of configuring our machines, and your advice would be very helpful! I for one am also using MacOS with TextMate, so I would like to create a configuration that is identical to the one you use in the screencasts (even down to the MissingDrawer plug-in!) :-) In particular, I would like to continue developing in EE even when I am not connected to the internet. My thanks in advance for describing how you do this. Tony. |
|
04 Aug 2008, 23:19
Ryan Irelan (218 posts) |
Hi Anthony. Sorry I didn’t have a chance yet to respond to your previous thread but I’ll do so here. On OS X you can run EE using the built-in Apache and PHP, but for simplicity and ease of use, I run MAMP href=”http://www.mamp.info/”>http://www.mamp.info/. It’s a client application that lets you run websites and web apps locally, in a sandbox. MAMP (Mac Apache MySQL PHP) includes PHP, MySQL and Apache and you can set it up so you can develop using EE even while offline. You can have your EE site live anywhere on your computer (I keep all of my projects in MAMP is simply an OS X application that creates a self-contained environment for you to develop in. It doesn’t touch any of your system settings. This should get you started, but I’d be glad to answer any questions as you are getting set up. |
|
07 Aug 2008, 13:50
Ryan Irelan (218 posts) |
Anthony, In case you haven’t seen it, I want to point you to a short write-up I did on how to set up local development using MAMP or WAMP, two applications that make it easy. http://www.eescreencasts.com/blog/view/developi… Hopefully, you find this helpful. |
|
08 Aug 2008, 14:49
Antony Gravett (6 posts) |
Many thanks for the response, the new article, and the links. I had MAMP running in short order and it seems like a very simple approach. I like the fact that I can have multiple instances of EE, one for each project. |
|
10 Aug 2008, 17:22
Antony Gravett (6 posts) |
Ryan: I am getting stuck defining the server path for the template files. I have created a folder called “template_files” in system/templates. I then turned on “Allow Templates to be Saved as Files?” and entered the server path thusly:
I can only guess that the server path that EE needs does not need to be referenced as far “back” as Applications, but I have not found a path that works, and when I click “Update” after creating or editing a template in the local copy of EE, I get an error saying, “Unable to save your template as a text file” and the file does not appear in the file hierarchy (of course!) If you can see where I’m going astray, I’d appreciate a pointer! Tony. |
|
10 Aug 2008, 19:14
Ryan Irelan (218 posts) |
This is most likely a permissions issue. I usually store my site files outside of the Application directory and somewhere under my home directory. However, to fix this you might need to alter the permissions on the I’m not sure if you’re familiar with the command line, so I’ll explain how to do it using the Finder. Select the If that doesn’t work, try placing your EE files in your home directory. Let me know how it goes. |
|
12 Aug 2008, 23:18
Antony Gravett (6 posts) |
Thanks, Ryan for all the guidance. Today, I successfully set up two of my projects to run locally, using MAMP Pro’s multiple hosts feature. Here’s a quick guide for others using MAMP Pro, and optionally Transmit and TextMate to set up locally-served EE projects: 1. Create a new EE root folder inside Home/Sites for your projects, and create a new folder inside it for your project. 2. In MAMP Pro, add a new host, and set the Disk Location to the above project folder. 3. Unzip a fresh copy of EE into the above project folder. 4. Set the following files to 666 using Transmit:
5. Set the following directories to 777 using Transmit:
6. In MAMP Pro, open PHPAdmin and create a new database (e.g., projectNameDb) and make a note of it. 7. In MAMP Pro, verify the MySQL root account (e.g., user = root; pw = dbadmin). 8. Change the name of EE’s system folder and make note of the modified name. 9. Restart MAMP Pro and access EE’s 10. Enter parameters for the MySQL database you gathered in steps 6 and 7. 11. After successful EE installation, remove the “install.php” file from EE’s folder. 12. In Transmit, create a 13. Log into the EE control panel for your project, select Templates tab > Global Template Prefs, turn on save as files, and set server paths:
14. Test that templates save as files, both locally and remotely. 15. In TextMate, create a new project and drag in the project folder you created in step 1. 16. (Optional) Save the TextMate project file loose in the root EE folder for easy access. |
|
13 Aug 2008, 01:05
Ryan Irelan (218 posts) |
Great! Thanks for posting your steps. I’m sure others will find this helpful! |
|
14 Dec 2008, 02:55
chris (1 post) |
I would be curious to know the process for moving a site from development to a production server. Paths and urls would change etc. |
|
16 Dec 2008, 13:01
Ceccaldi Sylvain (5 posts) |
Hi everyone ! I’m also curious to know the process to move a site from development to production, is this easy ? How are you dealing with the paths and the database migration ? Thanks in advance and have a nice day ! |
|
19 Jan 2009, 00:36
Esteban Castro (21 posts) |
ok working local is so easy, my BIG question is, how revert to the online site? upload templates is ok! upload images too… but what about the things that I do on the EE CP like custom filds, new category etc… I will need to go to the online site and create again??? that is not good! well so I think if reemplace the databse? if yes! the problem is what happend if a lot poeple working on the site post articles and I go to reemplace database for changes on EE CP, what a chaos! so in some point of this issue referral to my 1st post: http://forums.pragprog.com/forums/71/topics/1859 thanks Ryan start save my life if respond all this things!! hehehe |
|
30 May 2009, 09:17
Cecily Walker (11 posts) |
When running EE on a local installation like in the screencasts, where would you put a background image that you would refer to in the site’s CSS templates? For example, the path on my MacBook where I store EE is as follows Template files are in ~/ckidd/project/ee2/core/templates/site <- the location for the default weblog Where would be the best place to put background images and other image assets that would be used in the site’s design, and what is the file path I should use? Thanks to anyone who can shed some light on this for me. |
|
12 Aug 2009, 11:57
Mike C (10 posts) |
Antony, Really like your post and thanks for taking the time to write these steps. I am a complete novice to everything dynamic on the web bu would like to learn more about EE and especially working locally with EE. So far I have manged most of the steps but have got stuck on step 9. I was not sure how to restart MAMP Pro or access EE’s ‘install.php’ page. Can you give me a bit more detail on the steps i need to do this? |
| You must be logged in to comment |

