|
|
# Remote Code Deployment
|
|
|
|
|
|
Many IDEs offer ways to setup your project so that you can:
|
|
|
Many modern IDEs offer ways to setup your project so that you can:
|
|
|
- Use your local computer for editing source code, debugging, etc.
|
|
|
- Run (deploy) your program on a remote machine, such as one of the servers.
|
|
|
|
... | ... | @@ -10,4 +10,15 @@ For people with access to `icaro.polito.it`, this automatic remote deployment is |
|
|
|
|
|
The rest of this page contains a short guide on how to setup remote deployment on the [PyCharm](https://www.jetbrains.com/pycharm/) Python IDE by JetBrains. Instructions are similar for other JetBrain tools. If you use a different IDE, it would be very helpful if you could prepare a similar guide and share it with the sysadmins to include in this page.
|
|
|
|
|
|
## Remote Deployment with PyCharm
|
|
|
|
|
|
This guide refers to PyCharm Professional version 2021.1 and to a remote deployment that uses a ssh server on the remote machine.
|
|
|
|
|
|
#### 1. Create a Project
|
|
|
|
|
|
The first step consists in creating a PyCharm Python project on your local machine.
|
|
|
|
|
|
#### 2. Set a Remote Python Interpreter
|
|
|
|
|
|
Next, open the project settings (`Settings/Preferences` in Windows/Linux, `PyCharm/Preferences in macOs). Select `Project: <project-name>/Python Interpreter`
|
|
|
|