Skip to content

Commit

Permalink
enable quick switching from dev mode to runtime using USE_DEVMODE
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonRivers committed Feb 12, 2018
1 parent 01d3227 commit dcca718
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ node ('Docker') {
DockerApp = docker.build 'registry.dyalog.com:5000/dyalog/miserver:latest'
}
stage ('Test website') {
def MiServer = DockerApp.run ()
def MiServer = DockerApp.run ('-e USE_DEVMODE=true')
try {
//Get the IP of the container
def DOCKER_MS = sh (
Expand Down
7 changes: 6 additions & 1 deletion docker/entry.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,10 @@
#tail -f /dev/null > /tmp/aplfifo &

export MiServer=${MiServer-/MiServer/MS3}
dyalog -rt /MiServer/miserver.dws

if [ "${USE_DEVMODE}" = "true" ]; then
dyalog -s /MiServer/miserver.dws 2>/dev/null 0<&-
else
dyalog -rt /MiServer/miserver.dws
fi

1 comment on commit dcca718

@DyalogJenkins
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Build failed with output:

 Resource files not found:
  jBox   /jBox/plugins\Confirm\jBox.Confirm.min.js  /jBox/plugins\Notice\jBox
       .Notice.min.js  /jBox/plugins\Image\jBox.Image.min.js    /jBox/plugins
       \Confirm\jBox.Confirm.css  /jBox/plugins\Notice\jBox.Notice.css  /jBox
       /plugins\Image\jBox.Image.css  
 MiServer for "/MiServer/MS3" started on http://172.17.0.3:8080              
 Running in Production mode (configured by setting <Production> in /Config/Se
                
       rver.xml)
 "HandleRequest" closed socket SRV00000000.CON00000000 due to error: 1001  ER
       R_LENGTH    sending response
 "HandleRequest" closed socket SRV00000000.CON00000001 due to error: 1001  ER
       R_LENGTH    sending response
 "HandleRequest" closed socket SRV00000000.CON00000002 due to error: 1001  ER
       R_LENGTH    sending response
 "HandleRequest" closed socket SRV00000000.CON00000003 due to error: 1001  ER
       R_LENGTH    sending response
 "HandleRequest" closed socket SRV00000000.CON00000004 due to error: 1001  ER
       R_LENGTH    sending response
 "HandleRequest" closed socket SRV00000000.CON00000005 due to error: 1001  ER
       R_LENGTH    sending response

Please sign in to comment.