PyCharm Deployment Configuration

Configuring Deployment Server

  • Tools -> Deployment -> Configuration

  • + -> SFTP -> Enter the Server Name

    PyCharm Deployment Configuration_第1张图片
    image.png

  • Configure the Connection

    • Type: Transport protocol
    • Host: Remote Server Address or DomainName
    • username/password: authentication info
    • Root Path: In the Root path field, specify the server configuration root relative to your user home which was defined when you registered your account. This folder will be the highest one in the folder structure accessible through the current server configuration.


      PyCharm Deployment Configuration_第2张图片
      image.png
  • Configure the Mappings

    PyCharm Deployment Configuration_第3张图片
    image.png

    we can also add more than one Deployment Server, and chose the default Deployment server for the project by click
    PyCharm Deployment Configuration_第4张图片
    image.png

  • Configure Automatic Upload(always)
    Tools -> Deployment -> Automatic Upload(always)

Configuring Remote Interpreter

  • Preference -> Project: PROJECT_NAME -> Project Interpreter
  • Chose a Remote Interpreter if it existed or Add a new one:
  • add... -> SSH Interpreter -> 'New server configuration'
    PyCharm Deployment Configuration_第5张图片
    image.png

    at next step, please pay more attention on the sync folder setting.

你可能感兴趣的:(PyCharm Deployment Configuration)