How to run Julia on Cluster?

This is what the last two lines in my example accomplish:

I upload the code to the project directory with rsync. That way, I have a Project.toml and Manifest.toml in place that match my (tested) local version of the code.

All the jl file needs to do then is

using Pkg
Pkg.instantiate() # in case some package is missing on the remote
using MyPackage
command_I_want_to_run()
1 Like