# How to run Julia on Cluster?

**URL:** https://discourse.julialang.org/t/how-to-run-julia-on-cluster/56551
**Category:** Julia at Scale
**Tags:** question, package, cluster
**Created:** [March 5, 2021, 1:00pm UTC](https://discourse.julialang.org/t/how-to-run-julia-on-cluster/56551 "2021-03-05T13:00:38Z")
**Posts on this page:** 1
**Showing post:** 6

<div class="post-metadata">

### Author: ![hendri54](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/hendri54/32/9621_2.png) [@hendri54](https://discourse.julialang.org/u/hendri54)
#### Post date: [March 5, 2021, 11:17pm UTC](https://discourse.julialang.org/t/how-to-run-julia-on-cluster/56551/6 "2021-03-05T23:17:03Z")

</div>

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

> [@hendri54](#):
>
> ```julia
> export JULIA_NUM_THREADS=10 
> julia --project="." --startup-file=no "longleaf/run_hTypes2Bounded.jl"
> 
> ```

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

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

```

---

_[View the full topic](https://discourse.julialang.org/t/how-to-run-julia-on-cluster/56551)._
