I know there are documents all over the place, but I could not find one 
tutorial, or hands-on that describes the best way to set up your local dev 
environment with magnolia, using: IntelliJ, Maven, multiple instances able to 
run from your IDE (allowing debugging, etc), ability to publish, etc.

I know a fair bit of Maven. I am experienced in IntellJ, although Eclipse has 
less secrets for me. I know tomcat, and how to set up a mysql server. 

Here is what I have got so far, but it is not optimal, perhaps someone has 
suggestions:

- MySQL server 5.5.16, 64 bits
- Maven 2.2.1
- IntellJ 10.5
- Two seperate tomcat instances. Each have set their server.xml to define a 
resource looking at an own schema. Meaning, the author tomcat instance will 
look at the MySQL database, in schema authorschema. The public instance will 
look into publicschema. Author runs on port 8180, public on 8080.
- Both webapps work in their own context directories (/author, or /public).
- IntellJ has two run configurations, one to boot the public instance, and one 
to boot the author instance.

- The webapp has been checked-out twice, because you cannot run two tomcats 
using the same context dir (files), as it locks JARs. 

Trouble I have run into now:
- When running within IntelliJ, i have to also do mvn package, because IntelliJ 
does not always seem to copy all needed files for webapps.
- Because I have checked out twice the webapp, i need to make changes in both 
to see it working in both instances.
- The JCR seems to be corrupted, often after 2 or 3 restarts (made a different 
thread for this)
- I cannot seem to run within the IDE and let it 'detect' an author or public 
instance.

I bet there are more people who have/are developing in IntellJ and don't have 
these problems. Perhaps the recommended way is to develop for one instance at a 
time? If someone could enlight me? Please! :)

-- 
Context is everything: 
http://forum.magnolia-cms.com/forum/thread.html?threadId=077abdbd-06a8-4f2d-bf1c-658f4c136780


----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------

Reply via email to