You tin deploy a website from your integrated improvement situation (IDE) to a unrecorded server using a hosting supplier extension, Git repository integration, an FTP/SFTP connection, aliases GitHub Pages.
Each deployment method transfers files and configures your server differently, truthful the champion action depends connected your task and hosting provider.
If you want to deploy your website from your IDE utilizing a hosting supplier extension, travel these 4 steps:
- Gather the prerequisites for deployment.
- Install the hold successful your IDE and authenticate pinch your hosting provider.
- Deploy your website utilizing an AI chat punctual aliases hold commands.
- Verify the unrecorded tract to make judge everything useful correctly.
Alternatively, if your hosting supplier supports auto-deployment, push your codification to a GitHub repository. Your hosting supplier will automatically build and deploy your website.
You tin besides upload your task files straight to your hosting server utilizing File Transfer Protocol (FTP), aliases people a fixed website to GitHub Pages if your task doesn’t usage a database aliases backend.
How to deploy a website from your IDE utilizing a hosting supplier extension
To deploy a website from your IDE utilizing a hosting supplier extension, install the extension, link it to your hosting account, and deploy your website utilizing AI prompts aliases deployment commands.
A hosting supplier hold connects your IDE straight to your hosting account. This relationship lets you deploy websites, negociate hosting, and show projects without switching betwixt your editor, browser, and hosting dashboard.
The steps beneath usage Antigravity arsenic the featured IDE and Hostinger Connector arsenic the extension. Connector is free to install, but you’ll request an progressive hosting scheme to deploy your website to Hostinger.
The process should beryllium akin erstwhile deploying websites pinch Visual Studio (VS) Code aliases different IDEs, though the layout, fastener names, keyboard shortcuts, and paper paths whitethorn alteration slightly.
1. Gather the prerequisites
Before deploying your website from an IDE utilizing an extension, hole these things: a deployable website project, an progressive web hosting plan, and Node.js and Git installed connected your computer.
- A website task that’s fresh to deploy. Make judge your task useful connected your machine earlier deploying it. The guidelines files should incorporate an index.html aliases index.php file, which acts arsenic your website’s introduction point.
- An progressive web hosting plan. Web hosting stores your task files connected a server and makes your website accessible done a domain name. If you don’t person a web hosting plan yet, acquisition 1 from a reputable supplier for illustration Hostinger.
- Node.js installed. Run node –version successful your terminal to cheque whether Node.js is installed. If you spot the correction connection “Command not found,” download Node.js from nodejs.org and travel the installation instructions.
- Git installed. Run git –version successful your terminal to corroborate that Git is installed. If your terminal doesn’t admit the command, download Git from git-scm.com and instal it earlier mounting up the extension.
Hostinger Connector requires some Node.js and Git. Other deployment extensions whitethorn person different requirements, truthful cheque your extension’s archiving earlier installing and configuring it.

2. Install the deployment extension
Some web app hosting providers, including Hostinger, Vercel, and Netlify, connection extensions done the IDE’s Extensions panel. Open that panel, hunt for your provider’s extension, instal it, and travel the authentication prompts to link your hosting account.
Here’s really to instal and link Hostinger Connector:
- Open your IDE and entree the Extensions panel.
- Search for Hostinger Connector, past click Install.

- Click the Hostinger icon successful the Activity Bar.
- Hit 1-Click Connect.

- Sign successful to your Hostinger relationship successful the browser window, past authorize the connection.
- Return to your IDE and corroborate that the position badge has turned green.
Alternatively, spell to hPanel → Dev devices → API, prime your editor’s tab, and click Install. This action opens the hold page straight successful your IDE.
If browser authentication doesn’t work, navigate to hPanel → Dev devices → API, past click Generate API token and travel the on-screen instructions.
Copy the token, return to Hostinger Connector successful your IDE’s Activity Bar, and grow Advanced: usage API token instead. Paste the token, past deed Connect pinch API token.

3. Deploy the website done the extension
To deploy your website pinch Hostinger Connector, unfastened the task successful your IDE. Then, unfastened the AI chat and corroborate that your task sanction appears astatine the apical of the chat panel.
Prompt the supplier to deploy your task by specifying the hosting scheme and domain you want to use. For example:
Deploy this task to my Hostinger hosting scheme astatine domain.tld.Alternatively, inquire the supplier to take immoderate progressive scheme and usage a impermanent domain:
Deploy this fixed tract to immoderate of my progressive Hostinger plans utilizing a impermanent domain.Hostinger Connector past scans your project, runs the build process if needed, and uploads the files to the selected hosting scheme and domain. Once the deployment finishes, the chat will show the position and unrecorded URL.

You tin besides usage the aforesaid chat to cheque erstwhile deployment statuses and build logs:
Show maine the build logs for my past deployment.If the deployment fails, paste the correction output into the chat. The AI will analyse the correction and propose a hole aliases update the affected file. Once you’ve fixed the issue, inquire the supplier to redeploy the project.
4. Verify your unrecorded website
After deploying your website, unfastened the unrecorded URL from the chat output successful your browser and complete these checks:
- Pages and navigation. Visit each page and corroborate that each links lead to the correct destinations.
- Images, styles, and scripts. Make judge images, CSS styles, and JavaScript features load correctly crossed the site.
- Forms and interactions. Test interaction forms, sign-up fields, buttons, and different interactive elements to corroborate they activity arsenic expected.
- Mobile and tablet layouts. Open the tract connected a telephone and tablet, arsenic layouts tin behave otherwise connected smaller screens.
- SSL certificate. Confirm that the tract loads complete HTTPS and shows the Connection is secure position successful the reside bar, meaning the SSL certificate is active.
If thing looks wrong, picture the rumor successful the AI chat and connect a screenshot if needed. The supplier tin past analyse the problem and propose a fix. Once you’ve applied the changes, inquire the supplier to redeploy your website.
For move projects, see moving much thorough web app tests, including database, performance, and information testing. These checks tin thief you find issues that whitethorn not look during a basal review.
How to deploy a website from your IDE utilizing GitHub auto-deployment
To deploy a website from your IDE utilizing GitHub auto-deployment, push your task to a GitHub repository and link the repository to your hosting provider. Your supplier will past propulsion the code, tally the build process, and people the website.
This method includes type control, truthful you tin way changes, comparison earlier versions, and rotation backmost updates erstwhile needed.
Before you begin, make judge you person a GitHub account. The free scheme is capable for this process. If you haven’t hosted a website before, you’ll besides request a web hosting scheme and domain name.
Here’s really to deploy your website utilizing GitHub auto-deployment:
- Open the Source Control sheet successful your IDE and initialize a Git repository for your project. Stage each files, participate a perpetrate connection specified arsenic “Initial commit,” and perpetrate the changes.

- Push the perpetrate to a caller GitHub repository. Most IDEs fto you people a repository straight from the Source Control panel. If your IDE asks you to motion successful to GitHub, travel the browser prompts to authorize access.
- Sign successful to your hosting dashboard and unfastened the Git aliases GitHub integration settings. Authorize entree to your GitHub account, past prime the repository you want to deploy.

- Follow the on-screen instructions to configure the build settings. Then, deploy your task and hold for the build process to finish.
- Open the unrecorded URL successful your browser and corroborate that the website loads correctly.
If you for illustration to usage your IDE’s built-in terminal alternatively of the Source Control panel, unfastened the terminal and run:
git init git adhd . git perpetrate -m "Initial commit" git distant adhd root https://github.com/your-username/your-repo.git git push -u root mainReplace your-username pinch your GitHub username and your-repo pinch your repository name.
Some hosting providers, including Hostinger, support automatic redeployment. With this feature, each push to GitHub triggers a caller build and updates your unrecorded website without requiring you to unfastened the hosting dashboard.
Check your provider’s archiving aliases interaction its support squad to corroborate whether your hosting scheme supports automatic redeployment.
How to upload website files via FTP/SFTP from your IDE
To upload your website files via FTP/SFTP from your IDE, install an SFTP hold and link it to your hosting server utilizing the credentials from your hosting dashboard.
This method useful good for speedy updates erstwhile a hosting supplier hold aliases GitHub integration isn’t disposable aliases necessary. However, FTP doesn’t supply type control, truthful you can’t way changes aliases reconstruct earlier versions.
Make judge you get your SFTP hostname, username, and larboard from your hosting dashboard. Hostinger users tin find these specifications nether hPanel → Websites → Dashboard → Files → FTP Accounts.
As an example, here’s really to group up SFTP deployment utilizing SFTP by Natizyskunk, a free hold disposable for VS Code, Cursor, and Antigravity:
- Open your IDE’s Extensions panel, hunt for SFTP by Natizyskunk, and instal it.

- Open your IDE’s Command Palette and tally SFTP: config. This bid creates an sftp.json record successful your project.
- Enter your hosting server credentials successful sftp.json:
Enter your hosting server credentials successful sftp.json:
{ "name": "My Server", "host": "your-server-hostname", "protocol": "sftp", "port": 22, "username": "your-ftp-username", "remotePath": "/home/username/public_html", "uploadOnSave": true }Replace your-server-hostname and your-ftp-username pinch the values from your hosting dashboard. Set remotePath to the directory your supplier uses to service your website files, specified arsenic /home/username/public_html. Keep protocol group to sftp and port group to 22.
- Right-click your task files successful your IDE’s record explorer, past prime Upload Folder to upload each files to your server.
You tin besides group uploadOnSave to true to sync your changes whenever you prevention a file. Use this action cautiously connected accumulation websites because each saved alteration goes unrecorded immediately.
How to people a fixed tract to GitHub Pages from your IDE
To people a static site made pinch HTML, CSS, and JavaScript to GitHub Pages from your IDE, push the task to a GitHub repository and alteration Pages successful the repository settings.
GitHub Pages is simply a bully action if you want to big your first website, believe deployment without paying for a hosting plan, aliases showcase a individual project. However, it doesn’t support projects that usage server-side codification aliases a database.
If you haven’t pushed your task to a GitHub repository yet, do that from your IDE first. Then, travel these steps:
- Open the GitHub repository successful your browser and spell to Settings → Code and automation → Pages.
- Under Build and deployment, prime your branch, usually main, and your folder, usually / (root).
- Click Save, past hold for the build to finish.
- Return to Pages and click Visit site to unfastened your unrecorded website.

Your task is now unrecorded astatine https://username.github.io/repository-name. Each clip you push changes to the aforesaid branch from your IDE, GitHub Pages automatically updates your website.
How to take the correct deployment method for your project
The correct deployment method depends connected your task type, your deployment workflow, and really overmuch power you request complete the process.
Deployment method | How it works | Suitable projects | Best for | Limitations |
Hosting supplier extension | An AI chat punctual aliases bid deploys your task straight from your IDE | Static, Node.js, PHP, and WordPress websites | Deploying websites, managing hosting, and monitoring projects from 1 interface without switching tools | Requires a supported IDE and a paid hosting plan |
GitHub auto-deployment | Pushing changes to a connected GitHub repository prompts your hosting supplier to propulsion the codification and build the task automatically | Static, Node.js, PHP, and framework-based applications | Collaborative projects wherever aggregate contributors push predominant updates and request type control | Requires Git knowledge and a hosting scheme that supports auto-deployment |
FTP/SFTP | An FTP/SFTP hold uploads files straight from your IDE to the server | Static and PHP websites | Quick, one-time uploads to servers without Git support | No type control, rollback, aliases automated builds |
GitHub Pages | GitHub hosts your fixed website straight from a repository | HTML, CSS, and JavaScript websites | Hosting your first website, practicing deployment, aliases showcasing individual projects for free | Doesn’t support server-side codification aliases databases |
Choosing a web hosting plan pinch an IDE hold is the champion action for astir projects if your supplier offers one. It gives you the fastest way from your IDE to a unrecorded website pinch the fewest manual steps.
Opt for GitHub auto-deployment if your squad needs type power and automatic deployments pinch each push. Use FTP/SFTP for speedy uploads erstwhile a hosting supplier hold aliases GitHub auto-deployment isn’t available. Choose GitHub Pages if you request a free measurement to big a elemental fixed website.
Best practices for deploying a website from your IDE
Deploying a website from your IDE goes smoothly erstwhile you support delicate information retired of your repository, corroborate that everything useful locally earlier pushing, time off a clear way of what changed and why, and usage a non-production URL earlier going live.
- Protect situation files earlier pushing. .env files shop delicate data, specified arsenic database passwords and API keys. This accusation whitethorn go publically visible connected GitHub if you don’t exclude the files. Add .env and immoderate different credential files to .gitignore earlier your first commit.
- Test locally earlier deploying. In an auto-deployment setup, surgery codification tin spell unrecorded immediately, and visitors will spot errors until you announcement and hole it. Open the task connected your computer, sojourn each page, and corroborate that each features activity earlier pushing your changes.
- Write descriptive perpetrate messages. Vague messages for illustration “Update” aliases “Fix” make it difficult to place which alteration caused a problem erstwhile reviewing your deployment history. Write messages that picture the circumstantial change, specified arsenic “Fix interaction shape validation connected mobile.”
- Use a impermanent domain for testing. If you deploy straight to your accumulation domain, visitors whitethorn spot mistakes successful existent time. Deploy to a impermanent aliases staging URL first, corroborate that everything works, and past link your accumulation domain.
Troubleshooting communal IDE deployment errors
Common IDE deployment errors see SFTP rejections from incorrect credentials aliases permissions, relationship failures from mismatched server settings, and build crashes from missing limitations aliases incompatible runtime versions.
- “Permission denied” during an SFTP upload. This correction appears erstwhile the server rejects the upload because of an incorrect username, invalid record permissions, aliases an incompatible SSH cardinal format. Verify the credentials successful sftp.json, corroborate that directories usage 755 permissions and files usage 644, and person your SSH cardinal to PEM format if the correction includes DECODE_ERROR.
- “Failed to link to distant server” successful SFTP. This correction usually appears erstwhile the host, port, aliases protocol successful sftp.json doesn’t lucifer the values successful your hosting dashboard. A server firewall whitethorn besides artifact larboard 22. Check each 3 values against your dashboard, past interaction your hosting provider’s support squad if larboard 22 is blocked.
- Build nonaccomplishment during GitHub auto-deployment. Your hosting supplier whitethorn neglect to build the task because of missing dependencies, an unsupported runtime version, aliases an incorrect build command. Check the build logs successful your repository’s Actions tab. Then, corroborate that the scripts successful package.json and the Node.js type lucifer your hosting provider’s requirements.
Next steps aft deploying from your IDE
After your first deployment, make your tract easier to find pinch a civilization domain, widen what you tin negociate from the IDE beyond deployment, and adhd information nets for illustration automated backups and uptime alerts.
- Set up a civilization domain. A default hosting URL aliases github.io reside useful for testing, but a civilization domain makes your tract easier to find and share. If you buy a domain done Hostinger, you tin link it to your website successful hPanel. Hostinger will besides activate an SSL certificate automatically.
- Explore hold features beyond deployment. Hostinger Connector, for example, tin besides negociate domains, configure DNS records, group up email, and show server performance. Try prompts for illustration “List my domains” aliases “Show DNS records for domain.tld” to negociate your hosting without leaving the IDE.
- Enable automated backups. A grounded deployment tin break a moving website. Without a backup, you whitethorn request to hole the codification and redeploy the tract manually. Some web hosts, specified arsenic Hostinger, fto you alteration automated backups truthful you tin reconstruct a moving type quickly.
- Add uptime monitoring. Your website tin spell offline without you noticing. Use a website uptime monitoring work specified arsenic UptimeRobot to show your URL each fewer minutes and nonstop alerts by email aliases Slack erstwhile the tract stops responding.
All of the tutorial contented connected this website is taxable to Hostinger's rigorous editorial standards and values.
English (US) ·
Indonesian (ID) ·