First, I’m a Chinese and have a pool English.So please forgive my words which maybe so strange. I touched magnolia cms,an amazing open source cms in my mind, days ago .I get the bundle version and have it running well. I test the demo-project,and can publish the author-instance to public-instance. I study magnolia’s academy for servial days, but already don’t know how to create a public instance by myself. After an article(Website:http://dev.magnolia-cms.com/~gjoseph/dont-build-magnolia-build-your-projects#fn:2 ), I have get a magnolia project in your way(my IDE is myeclipse),and now I want to have a public-instance named myFirstProject,when I named is as magnoliaPublic , and then go to address http://localhost:8080/magnoliaPublic , it can auto run demo-project’s home page well, but if I named my public-instance as “myFirstProject”,when I restart server and install any modules, I go to the page which as same as my author-instance. I want to create a customized public instance ,how can I do ?
In the article , the author haven’t a public-instance , and have no project/page in pages app . My step is : 1. create magnolia in my IDE as same as your this article.(My magnolia version is 5.2 ),I named the project as “magnoliaAuthor” 2.(Skip my way of mvn clean install ),I get the war under tomcat’s webapp 3.run tomcat , and go to http://localhost:8080/magnoliaAuthor 4.Installed modules , and it runs well 5. But when I go to pages app , and add a page, and action the button “publish”,it occur an error, means cannot find the public-instance of localhost:8080/myFirstProject(Before this , I changed the value of URL to “localhost:8080/myFirstProject”,which is the property of magnoliaPublic8080 (Configuration –>server–>activation–>subscribers–>magnoliaPublic8080 ) 6. Okay,I know , I haven’t public-instance project of “myFirstProject”,Now My mean is to create a public-instance named myFirstProject 7. I follow the bundle version (bundle with tomcat 7 ),under tomcat 7′s folder of bin/magnolia_control.sh, I copy from my author-instance ,and this is my shell: 4 magnoliaAuth=”magnoliaAuth” 5 6 echo “Please input a name for your public instance :” 7 read magnoliaPublic 8 9 if [ ! -d "$magnoliaPublic" ]; 10 then 11 mkdir “$magnoliaPublic” 12 fi 13 14 if [ "$1"x = "-v"x ] 15 then 16 cp -r -v $magnoliaAuth/WEB-INF $magnoliaPublic/ 17 cp -r -v $magnoliaAuth/META-INF $magnoliaPublic/ 18 cp -r -v $magnoliaAuth/docroot $magnoliaPublic/ 19 else 20 cp -r $magnoliaAuth/WEB-INF $magnoliaPublic/ 21 cp -r $magnoliaAuth/META-INF $magnoliaPublic/ 22 cp -r $magnoliaAuth/docroot $magnoliaPublic/ 23 fi 8.Then I got the project of myFirstProject ,restart tomcat server 9. I want to go to page localhost:8080/myFirstProject/demo-project,But I cannot do this.When I go to the url, I’ll be redirect to myFirstProject’s login page.(The same way ,If I named the project as magnoliaPublic,my expection will work.So I guess if anywhere need to configuration?) 10.I tried to change my myFirstProject from author-instance to public-instance ,but I failed .When I changed my roles of anonymous,I get an error says:”have no such workspace ” Thanks for your read,I’ll wait for your replay all time.Very very thanks O(∩_∩)O ~… -- Context is everything: http://forum.magnolia-cms.com/forum/thread.html?threadId=343bcee8-2ccb-4918-a375-e88f5cdbe1b8 ---------------------------------------------------------------- For list details, see http://www.magnolia-cms.com/community/mailing-lists.html Alternatively, use our forums: http://forum.magnolia-cms.com/ To unsubscribe, E-mail to: <[email protected]> ----------------------------------------------------------------
