Skip to content

Commit

Permalink
further setting up scripts on the VM
Browse files Browse the repository at this point in the history
  • Loading branch information
davemfish committed May 24, 2024
1 parent d9765d5 commit 1d2df55
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
8 changes: 5 additions & 3 deletions scripts/recreation_server/execute_recmodel_server_twitter.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,17 @@
format='%(asctime)s %(name)-20s %(levelname)-8s %(message)s',
level=logging.DEBUG, datefmt='%m/%d/%Y %H:%M:%S ')

cache_workspace = '/home/dmf/projects/recreation/'
# a writeable dir, not the read-only mounted volume
cache_workspace = '/home/davemfish/twitter/server/'
mounted_volume = os.path.join(cache_workspace, 'cache')
args = {
'hostname': '127.0.0.1', # the local IP for the server
'hostname': '10.240.0.6', # the local IP for the server
'port': 54322,
'max_year': 2021,
'min_year': 2017,
'cache_workspace': cache_workspace,
'quadtree_pickle_filename': os.path.join(
cache_workspace, 'gcs/twitter_quadtree/global_twitter_qt.pickle')
mounted_volume, 'global_twitter_qt.pickle')
}

if __name__ == '__main__':
Expand Down
6 changes: 3 additions & 3 deletions scripts/recreation_server/launch_recserver_twitter.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
source /home/davemfish/miniconda3/etc/profile.d/conda.sh
conda activate ./invest/env/
nohup python -u execute_recmodel_server.py > nohup_recmodel_server.txt 2>&1 &
# source /home/davemfish/miniconda3/etc/profile.d/conda.sh
# mamba activate /home/davemfish/twitter/invest/env/
nohup python -u execute_recmodel_server_twitter.py > /home/davemfish/twitter/recmodel_server_log.txt 2>&1 &

0 comments on commit 1d2df55

Please sign in to comment.