|
|
![]() | ![]() | ![]() |
![]() | ![]() |
![]() |
EmForgeSetupGuide (Redirected from EmForge Setup Guide) EmForge After InstallationIt does not make sense how you installed EmForge - deployed EmForge.war into your J2EE server, used EmForge-launcher with bundled Jetty, or installed it with using MSI Installer - EmForge designed to be usable out-of-box after installation. So, you can start to use it. But, not sure it is really good idea to use default configuration of EmForge for production environment. By default, EmForge configured for easy-to-use, so, any user will easily able to start use it. But, this default configuration has some problems with performance and security, you will need to fix before try to use it in production. Some common notes about EmForge ConfigurationSo, you want to configure EmForge for your own needs, but how to do it? Currently, EmForge has no any Admin-Panel with comfortable GUI to easily do it from your browser. Sorry - we just had no time to do it yet, but we hope to develop it sometimes in future release. So, to configure EmForge you will need to edit configuration file in your preferred text-editor. All these files are placed under EmForge-installation (latelly called ${root}) which is depends from how did you installed it:
Main Configuration File you will need to work with:
Directory ${root}/WEB-INF/classes/META-INF/spring has some other Spring-configuration files, you probably will need to use, but we hope at this moment these 2 files will be enough. If you will have any questions - always feel free to ask in Forum - hope we will be able to answer. Remove default admin loginFirst of all you will need to remove at all - or change password for admin login. To do it simple change option security.admin.password in config.properties to new value. It make sense also to change security.admin.email If you want to assign admin role to some user, stored in Database you will need:
Configure EmForge pathAll links generated by EmForge UI should be generated correctly independencly from there is it installed (port, context-path). But, for correct generation of links in external documents like PDF, Reports, Email) you need to set property application.path=http://localhost:8080/EmForge/ Configure EmForge to use another SCM RepositoryBy Default, EmForge is configured to use scm:svn:https://emforge.svn.sourceforge.net/svnroot/emforge repository to view in Source-Browser Tab. If you want to change it to your own repository - simple edit linein config.properties to some SCM URL you need. For more details look into EmForge SCM Configuration
source.scm.url=scm:svn:https://emforge.svn.sourceforge.net/svnroot/emforge Configure EmForge to use another database.By default, EmForge is used build-in HSQL. It is simplest database, not very good for production environment, but - using of HSQL is not required any additional steps for configuration to start use EmForge. If you want to use EmForge with your own database, you need to change followed settings in config.properties:
You can use build-in auto-detection dialect (we go it's sources from LifeRay Portal: com.liferay.portal.spring.hibernate.DynamicDialect - in this case Hibernate Dialect will be auto-detected. After you will run EmForge next time, it will create all required tables and initial data in this new database. Configure EmForge to use Data SourceAnother way to configure EmForge to use another database - is to use some Data-Source, already configured in you J2EE Server. To do it - you need to replace emforge-ds.xml with file, attached to this page, and change config.properties so, database.url will contain name of the required DS. For example. under Tomcat, if you have configured jdbc/EmForge data-source, you need to change your config.properties to: datasource.url=java:comp/env/EmForgeDS datasource.driver is not make sense in this case (since driver is configured by J2EE server itself). You will need to configure datasource.dialect as well as was already described. Email ConfigurationEmForge sending some emails during processing workflow. For example, then some step is assigned to some user - this user will receive notification email with link to the task. SMTP Server ConfigurationTo be able to send emails EmForge should be able to connect to some SMTP Server. Here is options, controller SMTP server connection:
By default, EmForge configured to use local smtp server (available on most unix-systems), but, you can configure it (for example) to use any external SMTP server. Here is example of configuration for sending via Google SMTP: email.host=smtp.gmail.com email.port=-1 email.username=you_account@gmail.com email.password=your_password email.useSsl=true Configure email connection via JNDIIt is also possible to use mail Session, configured on application server level via JNDI. If you already have connection configures, just put it's name into email.sessionName and leave host, username and password empty, like: email.sessionName=mail/Session email.host= email.port=-1 email.username= email.password= email.useSsl=false Extra email settingsThere are some other properties related to emailing you can change:
Other security propertiesSome other security properties you can use to configure in config.properties:
Configure EmForge to use OpenLDAP or ActiveDirectorySee Active Directory tutorial for details about configuring EmForge to use ActiveDirectory for authentication OpenLDAP page described some details on OpenLDAP configuration (comparing to ActiveDirectory)
Wiki ConfigurationIt is possible to configure different properties related to EmForge Wiki like:
All of them described in EmForge Wiki Configuration page Another l10n optionsUnder some J2EE servers (for example JBossAS 4.2.2+) we met strange localization problems - text come from browser to server in latin1, not in UTF-8. To fix it you need to change option : application.useUtf8Decoding=false But - do it only in case you have problem with localization - in other cases it may produce problems, not fix it. By default, this options is false. We set it only for JBossAS. Probably, in some cases you will need to set it for your server. User-Interface settingsIt is possible to tweak ui behavior of EmForge - some properties are responsible for it:
Children Pages 1502 Views
| ![]() | |||
![]() | ![]() | ![]() | |||
|