Skip to content

Commit 1d2df55

Browse files
committed
further setting up scripts on the VM
1 parent d9765d5 commit 1d2df55

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

scripts/recreation_server/execute_recmodel_server_twitter.py

+5-3
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,17 @@
88
format='%(asctime)s %(name)-20s %(levelname)-8s %(message)s',
99
level=logging.DEBUG, datefmt='%m/%d/%Y %H:%M:%S ')
1010

11-
cache_workspace = '/home/dmf/projects/recreation/'
11+
# a writeable dir, not the read-only mounted volume
12+
cache_workspace = '/home/davemfish/twitter/server/'
13+
mounted_volume = os.path.join(cache_workspace, 'cache')
1214
args = {
13-
'hostname': '127.0.0.1', # the local IP for the server
15+
'hostname': '10.240.0.6', # the local IP for the server
1416
'port': 54322,
1517
'max_year': 2021,
1618
'min_year': 2017,
1719
'cache_workspace': cache_workspace,
1820
'quadtree_pickle_filename': os.path.join(
19-
cache_workspace, 'gcs/twitter_quadtree/global_twitter_qt.pickle')
21+
mounted_volume, 'global_twitter_qt.pickle')
2022
}
2123

2224
if __name__ == '__main__':
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#!/bin/bash
2-
source /home/davemfish/miniconda3/etc/profile.d/conda.sh
3-
conda activate ./invest/env/
4-
nohup python -u execute_recmodel_server.py > nohup_recmodel_server.txt 2>&1 &
2+
# source /home/davemfish/miniconda3/etc/profile.d/conda.sh
3+
# mamba activate /home/davemfish/twitter/invest/env/
4+
nohup python -u execute_recmodel_server_twitter.py > /home/davemfish/twitter/recmodel_server_log.txt 2>&1 &

0 commit comments

Comments
 (0)