Skip to content

Commit a5ef926

Browse files
committed
clean up bin & configs
1 parent 312018e commit a5ef926

18 files changed

+48
-683
lines changed

README.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,12 @@
1-
# hexagram
1+
# UCSC hexmap-viewer
2+
3+
### Retrieve from the code repository.
4+
```
5+
git clone https://github.com/stuartlab-UCSC/hexmap-view
6+
```
7+
### Install a development environment
8+
View the developer documentation by pointing your web browser to
9+
```
10+
file://HEXMAP/docs/dev/index.html
11+
```
12+
where HEXMAP is the full path to the above install.

bin/README.txt

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,8 @@ Scripts in this directory:
33

44
Server operations:
55
cd $HEXMAP
6-
bin/start [ https / db / www ]
7-
bin/stop [ https / db / www ]
8-
9-
Or server operations for protected ports:
10-
start db
11-
stop db
12-
sudo --preserve-env $HEXMAP/bin/start [ https / www ]
13-
sudo --preserve-env $HEXMAP/bin/stop [ https / www ]
6+
bin/start [ db / www ]
7+
bin/stop [ db / www ]
148

159
Installation:
1610
deployWww: make a tar file to install or update another installation

bin/checkProc.sh

Lines changed: 0 additions & 13 deletions
This file was deleted.

bin/deployWww

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,28 +8,28 @@ fi
88

99
source $HEX_VIEWER_CONFIG
1010

11-
if [ -z $DEPLOY_TARGET_ARCH ]; then
12-
echo "Exited, the env var, DEPLOY_TARGET_ARCH, must be defined"
11+
if [ -z $TARGET_ARCH ]; then
12+
echo "Exited, the env var, TARGET_ARCH, must be defined"
1313
echo "Do you want to run installWww instead?"
1414
exit 1
1515
fi
16-
if [ -z $DEPLOY_TARGET_PATH ]; then
17-
echo "Exited, the env var, DEPLOY_TARGET_PATH, must be defined"
16+
if [ -z $TARGET_PATH ]; then
17+
echo "Exited, the env var, TARGET_PATH, must be defined"
1818
echo "Do you want to run installWww instead?"
1919
exit 1
2020
fi
21-
if [ "$BUNDLE" == true ]; then
21+
if [ "$DEV" == false ]; then
2222
echo "sorry, cannot deploy from a bundled build"
2323
exit 1
2424
fi
2525

2626
# Build a www server with compression and other production enhancements.
2727
FILE=$HEXMAP/deploy/www.tar.gz
2828
cd $HEXMAP/www
29-
$METEOR_PATH npm install --production
30-
$METEOR_PATH build $HEXMAP/deploy --architecture $DEPLOY_TARGET_ARCH
29+
meteor npm install --production
30+
meteor build $HEXMAP/deploy --architecture $TARGET_ARCH
3131
cd $HEXMAP
3232

33-
scp $FILE $DEPLOY_TARGET_PATH
33+
scp $FILE $TARGET_PATH
3434
echo if the scp timed out, do:
35-
echo "scp $FILE $DEPLOY_TARGET_PATH"
35+
echo "scp $FILE $TARGET_PATH"

bin/https.sh

Lines changed: 0 additions & 9 deletions
This file was deleted.

bin/installWww

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ if [ -z $INSTALL_TAR_PATH ]; then
1212
echo "Do you want to run deployWww instead?"
1313
exit 1
1414
fi
15-
if [ "$BUNDLED" == false ]; then
15+
if [ "$DEV" == true ]; then
1616
echo "sorry, cannot install a bundle into your unbundled environment"
1717
exit 1
1818
fi

bin/js/https.js

Lines changed: 0 additions & 112 deletions
This file was deleted.

bin/js/https.multiServer.js

Lines changed: 0 additions & 87 deletions
This file was deleted.

bin/www.sh

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,15 @@ fi
1313
echo starting the www server
1414
cd $HEXMAP/www
1515
export MAIL_URL="smtp://localhost:25"
16-
if [ "$BACK_OR_FOREGROUND" == "FORE" ]; then
16+
if [ "$DEV" == true ]; then
1717
if [ "$BUNDLE_VIZ" == true ]; then
1818
$METEOR_PATH run --port $PORT --settings $HEXMAP/config/settings.json \
1919
--extra-packages bundle-visualizer \
2020
--production
2121
else
2222
$METEOR_PATH run --port $PORT --settings $HEXMAP/config/settings.json
2323
fi
24-
elif [ "$BUNDLED" == true ]; then
24+
else
2525
# Packaged Meteor apps use METEOR_SETTINGS environment variable.
2626
export METEOR_SETTINGS=$(cat $HEXMAP/config/settings.json)
2727

@@ -34,8 +34,5 @@ elif [ "$BUNDLED" == true ]; then
3434
# or equivalent.
3535
(nohup $NODE_BIN/node $HEXMAP/www/main.js &> $HEXMAP/log/www \
3636
& echo $! > $HEXMAP/pid/www)
37-
else
38-
(nohup $METEOR_PATH run --port $PORT --settings $HEXMAP/config/settings.json \
39-
&> $HEXMAP/log/www & echo $! > $HEXMAP/pid/www)
4037
fi
4138

config/hexdev.dmccoll

Lines changed: 0 additions & 54 deletions
This file was deleted.

0 commit comments

Comments
 (0)