Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
solo-1
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
solo-1
Commits
1405d36b
Commit
1405d36b
authored
Dec 04, 2015
by
Liang Ding
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix #12050
parent
bb84ed1b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
24 deletions
+18
-24
src/main/java/org/b3log/solo/Starter.java
src/main/java/org/b3log/solo/Starter.java
+7
-6
src/main/resources/latke.properties
src/main/resources/latke.properties
+11
-18
No files found.
src/main/java/org/b3log/solo/Starter.java
View file @
1405d36b
...
...
@@ -39,7 +39,7 @@ import org.eclipse.jetty.webapp.WebAppContext;
* </ul>
*
* @author <a href="http://88250.b3log.org">Liang Ding</a>
* @version 1.0.0.
4, Nov 30
, 2015
* @version 1.0.0.
5, Dec 4
, 2015
* @since 1.2.0
*/
public
final
class
Starter
{
...
...
@@ -66,7 +66,7 @@ public final class Starter {
final
CommandLineParser
commandLineParser
=
new
DefaultParser
();
final
CommandLine
commandLine
=
commandLineParser
.
parse
(
options
,
args
);
String
portArg
=
commandLine
.
getOptionValue
(
"p"
);
if
(!
Strings
.
isNumeric
(
portArg
))
{
portArg
=
"8080"
;
...
...
@@ -81,12 +81,13 @@ public final class Starter {
}
final
int
port
=
Integer
.
valueOf
(
portArg
);
String
contextPath
=
"/"
;
final
ResourceBundle
latke
=
ResourceBundle
.
getBundle
(
"latke"
);
String
contextPath
=
latke
.
getString
(
"contextPath"
);
if
(
Strings
.
isEmptyOrNull
(
contextPath
))
{
contextPath
=
"/"
;
if
(
latke
.
containsKey
(
"contextPath"
))
{
if
(!
Strings
.
isEmptyOrNull
(
latke
.
getString
(
"contextPath"
)))
{
contextPath
=
latke
.
getString
(
"contextPath"
);
}
}
Server
server
=
new
Server
(
port
);
...
...
src/main/resources/latke.properties
View file @
1405d36b
...
...
@@ -16,7 +16,7 @@
#
# Description: B3log Latke configurations. Configures the section "Server" carefully.
# Version: 1.3.
2.8, Nov 30
, 2015
# Version: 1.3.
3.8, Dec 4
, 2015
# Author: Liang Ding
#
...
...
@@ -27,28 +27,21 @@ serverScheme=http
serverHost
=
localhost
# Browser visit port, 80 as usual, THIS IS NOT SERVER LISTEN PORT!
serverPort
=
8080
############################ DO NOT MODIFY THE FOLLOWING ITEMS IF YOU DON'T UNDERSTAND THEM ############################
#### Context/Static Path ####
# Note:
# 1. The context path and static path should be "" (empty string) if deploy Solo on ROOT directory
# (e.g. ${tomcat}/webapps/ROOT/). For other cases, starts with '/' and not ends with '/', for example, /blog
# (e.g. ${tomcat}/webapps/ROOT/). For other cases, starts with '/' and not ends with '/', for example, /blog if
# deploy Solo on ${tomcat}/webapps/blog
# 2. If running Solo with Standalone mode(https://github.com/b3log/solo/wiki/standalone_mode), do NOT config the
# following two items, leaves them with "" (empty string)
contextPath
=
staticPath
=
#
contextPath=
#
staticPath=
#### IoC ####
#
S
ee https://github.com/b3log/latke/issues/17 for more details
#
Do NOT modify this item, s
ee https://github.com/b3log/latke/issues/17 for more details
scanPath
=
org.b3log.solo
#### Runtime Environment ####
runtimeEnv
=
LOCAL
#### Runtime Mode ####
runtimeMode
=
DEVELOPMENT
#runtimeMode=PRODUCTION
#### Cache Implementation ####
# Note: If the runtime environment is LOCAL, the cache will be 'LOCAL' always
cache
=
LOCAL
#### User Service Implementation ####
userService
=
LOCAL
########################################################################################################################
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment