Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
OERu
wenotes-docker
Commits
4c4f9c38
Commit
4c4f9c38
authored
Aug 07, 2017
by
Dave Lane
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix incorrect variable to make sure server install happens in the right place!
parent
0937714f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
10 deletions
+13
-10
docker-faye/conf/run.sh
docker-faye/conf/run.sh
+13
-10
No files found.
docker-faye/conf/run.sh
View file @
4c4f9c38
...
...
@@ -5,7 +5,7 @@
# Run start script.
echo
"*****Running run.sh"
CONF
=
/root/conf
WENOTES
=
/opt/wenotes
/server
WENOTES
=
/opt/wenotes
CWD
=
`
pwd
`
# Defines
WESERVER
=
https://kiwilightweight@bitbucket.org/wikieducator/wenotes-server.git
...
...
@@ -52,15 +52,18 @@ if [ "$1" = 'faye' ]; then
# next start various Javascript services
if
[[
-f
$CONF
/faye.yml
]]
;
then
echo
"moving to server"
cd
$WENOTES
/server
echo
"installing Node.JS dependencies"
$NPM
install
# this will be provided on the local filesystem, linked via a volume...
# $CP $CONF/options.json options.json
echo
"starting pm2 to supervise scripts in
$CONF
/faye.yml"
$PM2
start
--no-daemon
$CONF
/faye.yml
#$PM2 start $CONF/faye.yml
cd
$WENOTES
if
[[
-d
$WENOTES
/server
]]
;
then
cd
$WENOTES
/server
echo
"installing Node.JS dependencies"
$NPM
install
# this will be provided on the local filesystem, linked via a volume...
# $CP $CONF/options.json options.json
echo
"starting pm2 to supervise scripts in
$WENOTES
/server/conf/faye.yml"
$PM2
start
--no-daemon
conf/faye.yml
#$PM2 start $CONF/faye.yml
cd
$WENOTES
else
echo
"***looks like clone of wenotes-server failed - it's not in
$WENOTES
/server..."
fi
echo
"returning to original dir:
$CWD
"
...
...
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