The recoded version of Visual Studio Code’s extension, vscode-deploy-reloaded, offers an efficient way to deploy files to multiple destinations seamlessly. This user-friendly guide will walk you through the installation and usage of the extension, along with troubleshooting tips!
Table of Contents
Demos
Before diving into the installation process, let’s see some functionalities of the extension through demos:
- Deploying to SFTP: Visualize how the extension handles file transfers.
- Sync When Open: Automatically sync files while editing.
- Download Files: Retrieve files from remote locations effortlessly.
- Check Before Deploy: Review changes before executing a deployment.
Preview
This extension is in a beta state and designed to create a clean and efficient API to deploy files from VS Code. It provides multi-workspace support and includes a range of tools and features to enhance your productivity.
Install
To install the vscode-deploy-reloaded extension, follow these steps:
- Launch VS Code Quick Open (Ctrl + P).
- Paste the following command and press enter: ext install vscode-deploy-reloaded.
- You can also search for vscode-deploy-reloaded in your editor.
How to Use
Using the vscode-deploy-reloaded extension involves configuring your settings and executing the proper commands. Here’s a breakdown of the process:
Settings
Open (or create) your settings.json in your .vscode
subfolder of your workspace. Add the deploy.reloaded
section as shown in the code analogy below:
{
"deploy.reloaded": {
"packages": [
{
"name": "Version 2.3.4",
"description": "Package version 2.3.4",
"files": ["*.php", "*.json"],
"exclude": ["tests/**"]
}
],
"targets": [
{
"type": "sftp",
"name": "My SFTP folder",
"dir": "my_package_files",
"host": "localhost",
"port": 22,
"user": "tester",
"password": "password"
},
{
"type": "ftp",
"name": "My FTP folder",
"dir": "my_package_files",
"host": "localhost",
"port": 21,
"user": "anonymous",
"password": ""
}
]
}
}
Understanding the Code
Imagine setting up a system of mailboxes in a neighborhood. Each mailbox has its own identifier (name) and description that tells you what to expect when you drop a letter in it (deploy a file). You have multiple types of mailboxes (targets) namely SFTP and FTP, each with its own address (host) and how to access it (credentials). Each “letter” (file) follow specific routes (paths) to reach its respective mailbox. Just like this, the code you implement sends your files to designated targets based on the configurations you have provided.
How to Execute
Press F1 and enter one of the commands such as:
- Deploy File: Deploys the current file.
- Pull File: Downloads the current file from the remote location.
- Quick Execution: Quickly runs a JavaScript file.
Install Offline
If you don’t have internet access, you can install a .vsix file from the release section:
- Open the extension sidebar (CTRL + SHIFT + X).
- Choose Install from VSIX….
Support and Contribute
If you enjoy using vscode-deploy-reloaded and want to contribute, you can:
- Send a donation via PayPal.
- Open an issue on GitHub to report problems.
- Fork the repository and submit a pull request.
Troubleshooting Ideas
If you encounter any issues during installation or usage, consider the following:
- Ensure that you have the latest version of VS Code.
- Check your network connection if deployment fails during uploads.
- Verify your target configurations and credentials.
For more insights, updates, or to collaborate on AI development projects, stay connected with fxis.ai.
Related Projects
At fxis.ai, we believe that such advancements are crucial for the future of AI, as they enable more comprehensive and effective solutions. Our team is continually exploring new methodologies to push the envelope in artificial intelligence, ensuring that our clients benefit from the latest technological innovations.