Shopizer网站二次开发

Deploying Shopizer

The following information applies to Shopizer source distribution. If your intention is to test the application, there is a distribution bundled with Jetty ready to run without configuration.

I assume you are using Tomcat and that you want to use HSQL DB included (no installation required) Assuming you are deploying media web application for serving media files

1) Edit <shopizer>/sm-core/conf/properties/sm-core-config.properties

#your server url
core.domain.http.unsecure=http
core.domain.http.secure=http
core.domain.server=localhost:8080

You need to specify the absolute path to your exploded deployed media application for being able to upload images and properly use the CMS, so those properties need to point to your tomcat installation (assuming you are using media web application)

#media request uri
core.store.mediaurl=/media
#This is the media bin absolute path for storing branding images, product images and files (js, css, flash...)
#This is the path where you will be dropping your war files
core.bin.mediapath=c:/dev/apache-tomcat-6.0.20/webapps
#This is the absolute path where downloadable files will reside
core.download.path=c:/dev/apache-tomcat-6.0.20/webapps/media/download

2) Assuming you have eclipse IDE to edit the code and have installed ANT

right click on sm-media/build.xml and select 'Run As - Ant Build' right click on sm-central/build.xml and select 'Run As - Ant Build' right click on sm-shop/build.xml and select 'Run As - Ant Build'

If you don't have eclipse, just run ANT command in the root of sm-central, sm-shop and media source folders

Those commands will create media.war, shop.war and central.war in <shopizer>/dist

3) again assuming you have installed tomcat, just copy those 3 war files created in the previous step to

<TOMCAT INSTALLATION>/webapps

4) assuming you will use HSQL DB provided with source distribution, start the database

<shopizer>/schema/other/hsqldb-memory/startdb.bat

** You can use MySQL or Oracle if you want, the installation procedure is described in <shopizer>/schema/readme.txt and in a section of this document.

5) start Tomcat <TOMCAT INSTALLATION>/bin/startup.bat

once fully deployed, invoke

administration url → http:<yourhost>:<yourport>/central username: admin password: password catalogue url → http:<yourhost>:<yourport>/shop

发布了99 篇原创文章 · 获赞 0 · 访问量 8055
展开阅读全文

没有更多推荐了,返回首页

©️2019 CSDN 皮肤主题: 大白 设计师: CSDN官方博客

分享到微信朋友圈

×

扫一扫,手机浏览