Working remotely on Littledamien: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| (3 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
==Overview== | <p class="alert alert-warning">The information in this article is deprecated.</p> | ||
== Overview == | |||
Describes the set up for working on "littledamien" projects remotely. | Describes the set up for working on "littledamien" projects remotely. | ||
| Line 5: | Line 7: | ||
The latest workflow is to open a FTP version of the site in Netbeans and upload/download files from the littledamienii server as needed. | The latest workflow is to open a FTP version of the site in Netbeans and upload/download files from the littledamienii server as needed. | ||
==SSH== | == SSH == | ||
Bitvise WinSSHD is installed on the Littledamienii server. Start-up is set to "manual". | Bitvise WinSSHD is installed on the Littledamienii server. Start-up is set to "manual". | ||
| Line 16: | Line 18: | ||
** Use the router's admin interface to open the port. The default port for SSH is 22. WinSSHD is not set up to use the default port. The port number can be retrieved in the WinSSHD Control Panel. | ** Use the router's admin interface to open the port. The default port for SSH is 22. WinSSHD is not set up to use the default port. The port number can be retrieved in the WinSSHD Control Panel. | ||
==SFTP== | == SFTP == | ||
* Can't connect directly to WinSSHD using an FTP client, even when the FTP client is set to use the SFTP protocol. | * Can't connect directly to WinSSHD using an FTP client, even when the FTP client is set to use the SFTP protocol. | ||
| Line 32: | Line 34: | ||
* As described at [http://www.bitvise.com/ftp-bridge Connecting to an SFTP Server with a FTP Client] | * As described at [http://www.bitvise.com/ftp-bridge Connecting to an SFTP Server with a FTP Client] | ||
==Git== | == Git == | ||
* Make sure that the appropriate branch is active in Git before editing anything in Netbeans! | * Make sure that the appropriate branch is active in Git before editing anything in Netbeans! | ||
==Netbeans== | == IDE == | ||
=== PHPStorm === | |||
TK | |||
=== Netbeans === | |||
Saved for legacy purposes. Use PHPStorm in place of Netbeans. | |||
* Create a project in the local file system. | * Create a project in the local file system. | ||
| Line 53: | Line 63: | ||
* Once the remote connection has been set up for the project it's possible to download existing files from <code>littledamienii</code> by right clicking anywhere under the "Source Files" directory. | * Once the remote connection has been set up for the project it's possible to download existing files from <code>littledamienii</code> by right clicking anywhere under the "Source Files" directory. | ||
[[Category:SFTP]] [[Category:SSH]] [[Category:Web Development]] | == MySQL == | ||
* If any changes to MySQL are anticipated, that port will also need to be opened on the router. | |||
* Use MySQL Workbench software, or the Services tab in Netbeans on the remote computer to make any changes in MySQL. | |||
* An alternative option would be PHPMyAdmin. | |||
== Development server == | |||
Work off <code>[http://littled.dbarchowsky.com/</code> for testing any changes. | |||
* This will connect to the MySQL database running on <code>littledamienii</code>. | |||
* Changes will be uploaded to the staging server as they are made due to the "Upload files on save" setting in the Netbeans project. | |||
[[Category:Project Documentation]] [[Category:SFTP]] [[Category:SSH]] [[Category:Web Development]] | |||
Latest revision as of 11:24, 4 May 2018
The information in this article is deprecated.
Overview[edit]
Describes the set up for working on "littledamien" projects remotely.
The latest workflow is to open a FTP version of the site in Netbeans and upload/download files from the littledamienii server as needed.
SSH[edit]
Bitvise WinSSHD is installed on the Littledamienii server. Start-up is set to "manual".
- Remote desktop to littledamienii locally, and start the WinSSHD server through the WinSSHD Control Panel program.
- I originally installed WinSSHD to support a local Git server. I ended up not using the Git server mainly because it ended up being so much extra work having multiple repos when really the server itself is a staging environment and I can't deploy from a Git server using Git to any of the freelance sites that I maintain.
- Currently WinSSHD is set up to allow access to the entire directory structure, which of course is not very secure. This is why normally it's not even running, and the port is closed.
- Open up the SSH port on the router.
- After logging in go to "Virtual Server."
- Use the router's admin interface to open the port. The default port for SSH is 22. WinSSHD is not set up to use the default port. The port number can be retrieved in the WinSSHD Control Panel.
SFTP[edit]
- Can't connect directly to WinSSHD using an FTP client, even when the FTP client is set to use the SFTP protocol.
- (Install and) run Bitvise SSH Client to create an "FTP-to-SFTP bridge".
- Enter host, port, login, and password in the "Login" tab.
- SFTP tab
- Initial directory: 'd:\inetpub\develop'
- Treat as home: checked
- Services tab
- FTP-to-SFTP Bridge: checked
- Listen interface: 'localhost' or '127.0.0.1
- Listen port: 21
- Click the "login" button to start up the bridge. Keep the bridge open using other FTP clients.
- A navigator window when the bridge is established. This can be used to transfer files, of course.
- As described at Connecting to an SFTP Server with a FTP Client
Git[edit]
- Make sure that the appropriate branch is active in Git before editing anything in Netbeans!
IDE[edit]
PHPStorm[edit]
TK
Netbeans[edit]
Saved for legacy purposes. Use PHPStorm in place of Netbeans.
- Create a project in the local file system.
- Project > [right click] > Properties > Run Configuration
- Remote Connection: connection to FTP-to-STFP bridge
- Upload Directory: path to the project on
littledamienii, relative tod:\inetpub\develop. - Upload Files: On Save
- Remote connection
- Make sure a remote connection exists for the purposes of connecting to the FTP-to-SFTP bridge.
- Click the "Manage" button to the right of the Remote Connection setting to create/edit these connections.
- Protocol: FTP (not SFTP. The bridge takes care of that.)
- Hostname: localhost
- Port: 12
- Username & password
- Intial Directory: /d/inetpub/develop
- Once the remote connection has been set up for the project it's possible to download existing files from
littledamieniiby right clicking anywhere under the "Source Files" directory.
MySQL[edit]
- If any changes to MySQL are anticipated, that port will also need to be opened on the router.
- Use MySQL Workbench software, or the Services tab in Netbeans on the remote computer to make any changes in MySQL.
- An alternative option would be PHPMyAdmin.
Development server[edit]
Work off [http://littled.dbarchowsky.com/ for testing any changes.
- This will connect to the MySQL database running on
littledamienii. - Changes will be uploaded to the staging server as they are made due to the "Upload files on save" setting in the Netbeans project.