How can I deploy files from a project with multiple directories into one directory?

Answered

I have a PyCharm project that I use for various UNIX scripts. In my project I have directories based on the script's function, platform, etc, example "Data_Collection", "File_Utilities", "Network_Utilities", "Storage_Utilities", "User_Utilities".  This is purely to make it easier for me so I don't have to go hunting through hundreds of scripts to find the one I want.

The problem is, when I deploy these scripts to a remote server, the Deployment tool in PyCharm automatically creates the sub-directories under ~/bin, but I don't want the sub-directories, I just want everything in ~/bin since that is in my path and I don't want to have to add multiple paths to my RC file.

I don't see an option in the Deployment configuration to have it not recreate the source directory tree under ~/bin. How can I have all of the files in the project deploy to just ~/bin?

0
1 comment

Hello!

Thank you for contacting PyCharm support.

When you create a deployment configuration there is a tab "Mappings" where you can specify local directories and remote ones.

You can click "Add another mapping" button and specify the needed ones.

As an example:

Please do not hesitate to ask any questions.

Kind regards,

Sergey

https://www.jetbrains.com

The Drive to Develop

0

Please sign in to leave a comment.