Last active
August 14, 2020 08:25
-
-
Save shubhamagarwal92/ca010e3345e276801d7e10bfd7f0a79f to your computer and use it in GitHub Desktop.
Revisions
-
shubhamagarwal92 revised this gist
May 7, 2020 . 1 changed file with 2 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,3 +1,5 @@ Pre-requisite: You should be able to do ssh without entering password. See [this](https://apple.stackexchange.com/a/210133) Steps (Fig 1 and 2) 1. Open project in PyCharm 2. Make directory on server -
shubhamagarwal92 revised this gist
Jan 22, 2020 . 1 changed file with 3 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,4 +1,4 @@ Steps (Fig 1 and 2) 1. Open project in PyCharm 2. Make directory on server 3. Test you can ssh without entering password. (Save your rsa key on server) @@ -12,7 +12,7 @@ https://www.jetbrains.com/help/pycharm/creating-a-remote-server-configuration.ht https://www.jetbrains.com/help/pycharm/deployment-in-pycharm.html Add remote python interpreter (Fig 3 and 4 in the comment) https://www.jetbrains.com/help/pycharm/configuring-remote-interpreters-via-ssh.html @@ -21,7 +21,7 @@ https://www.jetbrains.com/help/pycharm/configuring-remote-interpreters-via-ssh.h If you have a code using relative paths: (Fig 5) 1. Right click folder -> Mark as -> source root -
shubhamagarwal92 created this gist
Jan 22, 2020 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,31 @@ Steps 1. Open project in PyCharm 2. Make directory on server 3. Test you can ssh without entering password. (Save your rsa key on server) 4. Preferences -> Deployment 5. Enable automatic upload https://www.jetbrains.com/help/pycharm/deployment-in-pycharm.html#upload-to-default-server 6. First time upload your directory. Right click project folder -> deployment -> deploy to <machine_name> 7. Add multiple directories if want to deploy on different servers. https://www.jetbrains.com/help/pycharm/creating-a-remote-server-configuration.html https://www.jetbrains.com/help/pycharm/deployment-in-pycharm.html Add remote python interpreter https://www.jetbrains.com/help/pycharm/configuring-remote-interpreters-via-ssh.html 1. Preferences -> Project interpreter -> ssh interpreter -> new/existing 2. Select exact conda path : /scratch/../anaconda3/env/name/python If you have a code using relative paths: 1. Right click folder -> Mark as -> source root For AWS, similarly the steps can be followed as mentioned here: https://www.codementor.io/abhishake/pycharm-setup-for-aws-automatic-deployment-m7n8uu2n4