Commit 150dded7 authored by Christoph von Oy's avatar Christoph von Oy
Browse files

Upated readme.md

parent 77c8a2ea
Loading
Loading
Loading
Loading
Loading
+4 −14
Original line number Diff line number Diff line
@@ -110,25 +110,15 @@ Depending on the used OS, change deployment directory in either _deployment.bat_

* for linux with `<SmartFoxServer directory>` at `/opt/SmartFoxServer_2X/SFS2X`

      SFS_EXT_DIR="/opt/SmartFoxServer_2X/SFS2X/extensions/AllInOne"
      SFS_DIR="/opt/SmartFoxServer_2X/SFS2X"
      
* for windows with `<SmartFoxServer directory>` at `C:\Users\Administrator\SmartFoxServer_2X\SFS2X`

      SET SFS_EXT_DIR=C:\Users\Administrator\SmartFoxServer_2X\SFS2X\extensions\AllInOne
      SET SFS_DIR=C:\Users\Administrator\SmartFoxServer_2X\SFS2X
      
In _pom.xml_, change the `<sfs.extensions>` path to match the directory, in which the server extension is going to be deployed. For example, if `<SmartFoxServer directory>` is located at `C:\Users\Administrator\SmartFoxServer_2X\SFS2X`, then the `<sfs.extensions>` should be as follows:
In _pom.xml_, change the `<sfs.directory>` path to match the directory, in which the server has been installed. For example, if `<sfs.directory>` is located at `C:\Users\Administrator\SmartFoxServer_2X\SFS2X`, then the `<sfs.directory>` should be as follows:

          <sfs.extensions>C:\Users\Administrator\SmartFoxServer_2X\SFS2X\extensions\AllInOne</sfs.extensions>

In _pom.xml_, the `execution` in _exec-maven-plugin_ has to be configured for phase `package` to allow automatic deployment of the web application files. `<phase>none</phase>` is used by default, to allow correct operating of contineous integration tools.

      <execution>
          <id>Deploy</id>
          <phase>none<!-- for production set to 'package' --></phase>
          <goals>
              <goal>exec</goal>
          </goals>
      </execution>
          <sfs.directory>C:\Users\Administrator\SmartFoxServer_2X\SFS2X</sfs.directory>
      
Deployment of the server extension is done via `mvn clean install --settings ./settings.xml` command, which will built, test and deploy as a single jar the server application in SmartFoxServer _extensions_ directory. If an instance of the SmartFoxServer is running, the new extension will be automatically loaded.

+1 −1

File changed.

Contains only whitespace changes.