TODAY = dt.now().strftime('%Y.%m.%d')
WORLD='world'
-SERVE=f'{HOME}/luanti/bin/luantiserver --gameid minetest --worldname world'
+SERVE=f'screen -d -m {HOME}/luanti/bin/luantiserver --gameid minetest --worldname world'
SSH=f'ssh {USER}@{IP}'
SCP=f'scp {USER}@{IP}'
@task(verify_backup)
def serve(c):
print(f"Attempting to connect to {IP}")
- c.run(f'ssh {USER}@{IP} -C {SERVE}')
+ result = c.run(f'ssh {USER}@{IP} -C {SERVE}')
+ print(f'Server should now be running in a remote screen session.')
+ print(result)