# Workflow for deploying Pkg3 package on a computing cluster

**URL:** https://discourse.julialang.org/t/workflow-for-deploying-pkg3-package-on-a-computing-cluster/14196
**Category:** General Usage
**Created:** [August 28, 2018, 4:34pm UTC](https://discourse.julialang.org/t/workflow-for-deploying-pkg3-package-on-a-computing-cluster/14196 "2018-08-28T16:34:24Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Gregstrq](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/gregstrq/32/20620_2.png) [@Gregstrq](https://discourse.julialang.org/u/Gregstrq)
#### Post date: [August 28, 2018, 4:34pm UTC](https://discourse.julialang.org/t/workflow-for-deploying-pkg3-package-on-a-computing-cluster/14196/1 "2018-08-28T16:34:24Z")

</div>

Let’s say I want to develop a private package PrivPack, transfer it to a computing cluster, then run a bunch of scripts which use this package. I would like to clarify the steps in this scheme.

When I `] generate PrivPack` using new package manager, it creates new environment, but there is no git repo created. What is the best way to transfer the package to the cluster? Do I just copy the PrivPack environment folder to cluster and then activate it? Or is it better to manually setup a git repo in PrivPack folder, push the code to github or other place and then do `] add PrivPack-something.git` on the cluster side?

Running the scripts on the cluster depends on how I transfer the package. If I use the second way (via github repo and add) I just do `using PrivPack` in the scripts. At the same time if I have the package on the cluster as an extra environment, then there is a problem. I would like to run a parallel script with `julia -p nworkers script.jl`. But how should I activate the same environment on all of the workers?

---

<div class="post-metadata">

### Author: ![Tamas\_Papp](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tamas_papp/32/25949_2.png) [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)
#### Post date: [August 29, 2018, 9:18am UTC](https://discourse.julialang.org/t/workflow-for-deploying-pkg3-package-on-a-computing-cluster/14196/2 "2018-08-29T09:18:15Z")

</div>

> [@Gregstrq](#):
>
> What is the best way to transfer the package to the cluster?

That depends on your workflow. I would go for a private git repository where I put the package (eg on Gitlab, so that I can set up CI) that the cluster could pull from, but `scp` into a `dev`d directory could also work.
