PyCharm setup¶
SSH Deployment¶
- In PyCharm, go to : Tools -> Deployment -> Configuration
- Under the Connection tab, select the type (SFTP), enter the host, username and authentication type.
- Under the Mappings tab, enter the local path and deployment (remote) patch.
- Click on OK to leave the Configuration box.
- Synchronize with Tools -> Deployment -> Sync with Deployed to…
- Select Tools -> Deployment -> Automatic Upload
Libraries¶
- Copy the content of /opt/zenoss/Products locally to c:reposzenoss.ProductsProducts
- Copy the content of /opt/zenoss/lib/python locally to c:reposzenoss.python
- Copy the content of /opt/zenoss/ZenPacks/ZenPacks.zenoss.PythonCollector-* locally to c:reposZenPacks.zenoss.PythonCollector
- In PyCharm, go to File -> Settings.
- Select Project -> Project Interpreter.
- Select Python 2.7.12, click on cogwheel and select More.
- Click on the last button “Show paths for the selected interpreter”
- Add the following content roots:
- c:reposzenoss.Products
- c:reposzenoss.python
- c:reposZenPacks.zenoss.PythonCollector
Git setup¶
- Select VCS -> Enable Version Control Integration
- Select Git and click on OK
- Create a .gitignore file
- Select root folder and select VCS -> Git -> Add
- Select VCS -> Git -> Commit Directory
- Enter a commit message and click on Commit.
- Select VCS -> Import into Version Control -> Share Project on GitHub
- Click on Continue
GitHub integration¶
- Click on VCS -> Import into Version Control -> Share Project on GitHub.
- Confirm the repository name and click on Share.