PyCharm synchronize local project file to the server

Recently I made a personal blog site, in line ready to cook, so Ali purchased a cloud server. Before the line needs to be synchronized to the local project file server.

My website is based on the Django development, IDE using PyCharm. There are many local project file upload server the way, I am here to introduce PyCharm synchronize the local project file to the server.

The first step : Click PyCharm the top left of the menu bar Tools -> Deployment -> Configuration

Step two : Add the deployment configuration

The third step : Fill deployment configuration: Note Select Type type, you need to fill in the server address, port number, user name, user password

Note : local path represents the local project directory, deployment path on server 'my_blog' represents the directory where the server after the upload server project

Now the preparatory work done before the synchronization server, then synchronize the local project file to the server

Step four : the mouse to select the project directory (mouse clicks), expressed the need for the entire project will be synchronized to the server

Step Five : Upload synchronous execution, Click: Tools -> Deployment -> Upload to my_blog

After the implementation of this step you can view the project file in the corresponding directory server.

 

In addition to synchronize the entire project code, you also can synchronize a single file, for example, I modified the settings.py file, then only need to synchronize the settings.py file, without the need to synchronize the entire project. Synchronous single file just to read above a fourth step select settings.py file.

 

发布了43 篇原创文章 · 获赞 8 · 访问量 6630

Guess you like

Origin blog.csdn.net/heibuliuqiu_gk/article/details/104057493