DriversRecommendedOutdated drivers can make a good PC feel brokenScan driver issues before chasing fixes manually.Scan NowOctober DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsPC HealthRecommendedCrashes, freezes, slowdowns? Check your PC nowSpot repairable issues before they interrupt work.Check PC×
Skip to content
Mountain View desk12 min

How to Deploy a Website From Google Antigravity to a VPS

Build with Google Antigravity, deploy the production output to your VPS, configure nginx or a Node reverse proxy, point DNS to the server, and enable HTTPS. This guide separates hosting from running Antigravity remotely and covers the failure modes that commonly stop a release.

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Google Antigravity does not host your public website. Use it to create or edit the project, build a production version, and then deploy that output to a VPS. On the VPS, a web server such as nginx serves static files, or a process manager keeps a server-rendered Node application running. The reliable sequence is: validate the project locally, build it for production, copy the correct output to the VPS, configure the web server, point DNS to the server, and enable HTTPS.

No official Google, step-by-step VPS deployment guide is currently published for this workflow. The exact Antigravity interface and generated project structure can therefore change. The commands below use conventional Linux VPS tooling; check the requirements of your project and distribution before running them.

As an Amazon Associate I earn from qualifying purchases.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

What “deploy from Antigravity” actually means

Antigravity is a development tool. It can generate files, modify code, and help you iterate on an application, but it is not the component that answers requests from visitors. Deployment is the process of turning that project into files or a running application on another machine.

There are two separate activities that are often confused:

#1 Best Overall
Sale
TOZO A1 Wireless Earbuds Bluetooth 5.3 Light Weight in Ear Headphones | IPX5 Waterproof,2 Mics for AI Calls,Immersive Premium Sound Bass Headset with Charging Case,32 EQ via App Black
  • [Ultra-Lightweight Ear Buds Designed for Small Ears] Each earbud weighs only 3.7g and features a compact, ergonomic in-ear design made especially for small ears. Secure, low-profile, and comfortable for workouts, all-day wear or overnight sleeping.The ultra-slim profile sits flush in your ear with no hard edges poking or rubbing, so you can even sleep on your side without discomfort.
  • [Immersive Stereo Sound with TOZO OrigX Technology] TOZO OrigX tuning delivers clear vocals, balanced mids, and natural stereo sound for music, podcasts, and videos.
  • [Long Battery Life for Daily Use] Get up to 7 hours of playtime on a single charge, with up to 32 hours total using the charging case—ideal for workdays, commuting, and extended listening sessions.
  • [Bluetooth 5.3 & Stable Connection] Bluetooth 5.3 provides fast pairing, stable wireless performance, and reduced dropouts as you move around home or office.
  • [Deep Bass with Clear Vocals] High-performance drivers produce punchy bass while keeping vocals clean and detailed for everyday listening.
  • Hosting the website: a VPS web server (for example, nginx) serves HTML, CSS, JavaScript, images, and other build artifacts, or proxies requests to an application process.
  • Running Antigravity remotely: you install a command-line or graphical development environment on a server and connect to it over SSH or Remote Desktop. That can keep an agent session available, but it does not publish the site by itself.

For a normal public site, build with Antigravity on your workstation (or in a controlled build environment), then deploy the resulting artifact. Run Antigravity on the VPS only when you have a specific remote-development requirement.

Choose the deployment model before touching the server

Look at the project files and its package scripts. The hosting design depends on whether the production result is only files or requires a long-running process.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Project result What the VPS must run Typical deployment target Important detail
Static HTML, CSS, JavaScript and assets nginx or another web server The framework’s output folder, such as dist/, build/ or out/ No Node process is needed after the files are copied.
Single-page application with client-side routing nginx plus a fallback rule The same static output folder Unknown paths usually need to serve index.html so the client router can handle them.
Server-rendered or API application Node (or the runtime specified by the project), a process manager, and nginx as a reverse proxy The application source and its production dependencies Environment variables, ports, logs, restarts and database access become operational responsibilities.
Application with a database or background jobs All of the above plus a database and worker strategy Source, migrations, assets and persistent storage Backups, migrations and secret management must be planned separately from the web server.

If you cannot identify which category applies, inspect package.json, the README, and the build configuration. A script named build often creates static output, while scripts such as start, serve or a framework-specific production command may indicate a server process. Do not assume that a folder named .next/ can be served as ordinary static files; many Next.js deployments require the framework’s Node server unless the project was explicitly configured for static export.

Prepare the project for production

Remove development-only material

Before committing or copying anything, remove files that were created for experiments rather than the live site. Examples include test-data.json, debug.log, temporary directories such as tmp/, generated screenshots, and local exports. Leaving them in a public web root can disclose data or create confusing behavior.

Find local-only URLs and settings

Search the project for hardcoded values such as localhost, 127.0.0.1, development ports, and test API endpoints. Replace them with production configuration or environment variables. A browser application may need its API base URL embedded at build time; changing a server-side environment variable after a static build will not rewrite already-generated JavaScript.

Check dependencies and case sensitivity

Use the package manager and lockfile that the project already uses. A dependency installed globally or present only in your workstation’s cache may be absent on the VPS. Linux filesystems are commonly case-sensitive, so an import of ./Header can fail when the file is actually named header, even if it worked on a case-insensitive development machine.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #2
Sale
Smart Watch for Men Women Compatible with iPhone Samsung Android Phone 1.69 inch Full Touch Screen IP68 Waterproof Bluetooh Fitness Tracker Heart Rate/Sleep Monitor (Black)
  • 【IP68 Waterproof Multifunctinal Smart Watch】Torjalph fitness activity tracker smart watch is IP68 waterproof technology ,you can wear it when swimming,handwashing,it's rain-proof which means that you perform multiple exercise modes outside without worrying about sweat or rain corroding your fitness smart watch,and this watch equipped with a 230 mAh large capacity battery magnetic charging ,and this sports activity tracker watch can be used 5-7 days If fully charged.
  • 【Larger 1.83'' Full Screen Watch & Multi-dial Selection】1.83 inch full HD color touch screen smart watch for men / women provides excellent 240*284 resolution image quality ,This Bluetooth smart watch offers a better touch experience and remarkable immersion and ,more than 200 watch faces for you to choose from App"Da Fit ", you can change the dial style according to your mood to wear keeping the world on your wrist
  • 【Accurate Activity Tracker Smart Watch 】sports watch activity tracker uses sweat and dust resistant breathable silicone strap, our Fitness Tracker Smart Watch for Android iOS Phones supports 12 sports modes,walking,running,bicycle,swimming,badminton,basketball,football,rope skipping. This bluetooth calls smart watch for men women is lightweight and stylish, bringing more convenient and relaxing sports experience while also providing more protection.
  • 【Your 24 Hour Personal Daily Health Monitor】Fitness watch for women men full touch screen IP67 waterproof bluetooth smartwatch for Android iOS Phones with heart rate blood pressure monitor multifunction Andriod smart watch with steps counter sleep monitor sports fitness watch, monitoring blood oxygen saturation allows you to understand your physical condition in real time to track fitness progress ,to know your health status in time.
  • 【More Functions Bluetooth Call Smart Watch】This fitness activity smart watch full screen for iPhone and Android phones includes a bunch of new features including:The bluetooth smart watch can hang up the phone, receive and display WhatsAPP /Text /Facebook /Twitter /Messenger reminder.Support sedentary reminder, alarm clock, stopwatch, timer,weather information,music control, remote camera control compatible with Android 5.0 and above or iOS 9.0 and above smartphones.

Keep secrets out of the repository

Do not commit API keys, database passwords, private certificates or provider tokens. Put production values in the VPS environment or a protected environment file with restrictive permissions. Remember that variables intentionally exposed to browser code are not secret; a static site sends those values to every visitor.

Build and test the production artifact locally

A development server can conceal missing imports, type errors, incorrect case, and undeclared packages. The most valuable pre-deployment check is a clean production build on a machine that starts from the repository rather than your existing dependency cache.

  1. Install the declared dependencies. From the project directory, use the lockfile-aware command for your package manager. For npm projects this is commonly npm ci; use pnpm install --frozen-lockfile or yarn install --frozen-lockfile when those tools and lockfiles are already in use.
  2. Run the project’s production build script. A common npm invocation is npm run build. Use the exact script defined by the project rather than inventing a framework command.
  3. Treat every build error as a deployment blocker. Fix type errors, unresolved imports, missing environment variables, failed asset generation and lint or test failures required by the project.
  4. Locate the generated output. Common names are dist/, build/ and out/. A .next/ directory generally belongs to a Next.js runtime workflow unless static export was configured.
  5. Serve the real output folder locally. For a static artifact, a command such as npx serve dist (substitute the actual folder) helps reveal broken relative paths, missing assets and client-side routing problems. Test the same URL patterns that visitors will use, including a deep link such as /about.

Do not copy the development server’s process or its source directory to nginx and call that deployment. nginx should receive the production artifact, while a server-rendered application should be started with its documented production command.

Put the project in version control

Create a private Git repository if the source contains proprietary code or configuration. Commit the source, lockfile and deployment configuration, but not build caches, secret files or large local test data.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

A typical workflow is:

  1. Initialize or open the repository in your project directory.
  2. Add a .gitignore covering dependency directories, build output, logs and environment files.
  3. Commit the known-good production build changes.
  4. Push to a repository the VPS can access, using a deploy key or another narrowly scoped credential rather than a personal password.

Git is optional for a one-time static upload—you can transfer an archive with scp or rsync—but a repository gives you a repeatable rollback point and makes later updates less error-prone.

Prepare and secure the VPS

Choose a current Linux distribution supported by your application. Record the server’s public IPv4 address and, if you will publish one, its IPv6 address. Before uploading the site:

Rank #3
New Bee Guitar Cable 10ft Electric Instrument Bass AMP Cord
  • [Low Noise High Fidelity] New bee guitar cord with 22AWG oxygen-free-copper center conductors provides enhanced signal transfer, the PVC insulation material and the high-density stranded copper double shield provide noise rejection for quiet operation
  • [Ideal for Choice] New bee 1/4 straight and right angle metal connectors, ensures a secure connection in any instrument, pedal, or amp jack. L shape great fro on stage guitar stands
  • [Wide Compatible] Suitable for mixer, power amplifier, microphone, effector, decoder, equalizer, electoronic organ, electric guitar, electric bass and other electronic equipments. Widely used in the installation of smart home, karaoke speaker, professional stage audio, etc
  • [Easy Disassemble] Making incidental repairs quick and easy! Very nice, flexible cable
  • [Dont Hesite to Order] 24 hours customer services and professional technology team are standing by
  • Apply the distribution’s security updates.
  • Create a non-root administrator and use SSH keys where possible.
  • Configure a firewall to permit SSH and the web ports you actually use (normally TCP 80 and 443).
  • Disable password SSH login and direct root login only after confirming that key-based access works in a second session.
  • Keep a recovery path through the VPS provider’s console or rescue system.

These are general administration practices, not Antigravity requirements. A VPS gives you control, but it also makes you responsible for updates, hardening, monitoring and recovery work that a managed platform may perform for you.

Deploy a static build with nginx

Install nginx and create a web-root directory

Install nginx using your distribution’s package manager, then create a directory dedicated to this site, for example /var/www/example-site. Assign ownership so your deployment user can update the files without making the web server run as root. Keep the source repository outside the public web root unless the application needs it.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Copy only the build output

From your workstation, transfer the contents of the real output folder, not the project’s entire working directory. For example, with a static dist/ result, an rsync command can copy it to the VPS:

rsync -avz --delete dist/ deploy@example-vps:/var/www/example-site/

Replace the user, host and paths with your values. The --delete option removes files on the server that no longer exist locally; use it only when the destination contains no unrelated content. If you prefer Git, clone the repository into a non-public directory, run the production build on the VPS, and copy the generated folder into the web root.

Create the nginx server block

Create a server configuration for the domain. This example serves a static single-page application:

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
server {
    listen 80;
    listen [::]:80;
    server_name example.com www.example.com;

    root /var/www/example-site;
    index index.html;

    location / {
        try_files $uri $uri/ /index.html;
    }
}

The root must point to the directory that actually contains index.html. The fallback to /index.html is appropriate for many client-side routers. For a traditional multi-page site where missing paths should return a real 404, use try_files $uri $uri/ =404; instead. Do not use the SPA fallback to hide missing server routes in an API or server-rendered application.

Rank #4
BSIMB 15.6" Digital Family Calendar & Chore Chart, No Subscription Fees
  • Digital Family Calendar: BSIMB digital calendar wall touch screen puts an end to your chaotic life. Designed for busy families, the digital calendar keeps you organised and in step with your family. Assign different colours and tasks to each family member to make family scheduling easier and more intuitive.
  • Easy Setup and Auto-Sync: Plug in, connect to WLAN and auto-syn your electric calendar in minutes. Digital wall calendar compatible with Google calendar, iCloud calendar, Outlook calendar, Cozi calendar and Yahoo calendar. Add events directly on the device or through the ecalendar app. Electronic calendar stays current whether you're at work or traveling—no manual updates needed.
  • All-In-One Home Assistant: Smart calendar builds habits and encourage independence with personalised chores. Display daily meal plan to reduce the daily ‘What's for dinner?’ stress. To-do lists keep track of everything you want. Turning chores into valuable achievements with stars and rewards, making life easier and more enjoyable.
  • Manage Anytime Anywhere: BSIMB electronic calendar for family stay connected with the powerful ecalendar app. Access and manage your digital wall calendar anytime, anywhere with free features like stars & rewards, photo screensaver, chore charts, meals plans, to-do lists etc. Electronic planner paid features like Magic Import tailor advanced tools for users with special needs.
  • Stay in Touch with Loved Ones: Share photos or videos from your phone to electronic wall calendar with app, instantly update your life moment, and keep in touch with your family, especially those who are far away; you can also surprise your smart calendar digital wall by sending him a wish card; it's also great for keeping tech-illiterate elders in touch with the youngsters.

Validate and reload nginx

  1. Enable the site according to your distribution’s nginx layout, often by placing a link from an available-sites directory into an enabled-sites directory.
  2. Run sudo nginx -t. Fix every syntax or path error before proceeding.
  3. Reload rather than restarting when possible: sudo systemctl reload nginx.
  4. Check the local response with curl -I http://127.0.0.1 and inspect nginx’s error log if you receive a 403, 404 or 5xx response.

A 403 commonly means nginx cannot traverse one of the parent directories or read the files. A 404 often means the root points one directory too high or too low. Confirm the exact location of index.html and the permissions on every parent directory.

Deploy a server-rendered Node application

If the project needs Node at request time, do not place its source or .next/ directory directly behind a static nginx root. On the VPS, install the Node version required by the project, clone the repository, install production dependencies, and run its documented production build.

Start the application on a private local port, such as 3000, using a process manager or a system service so it restarts after a crash and after a reboot. Configure nginx as a reverse proxy to that local port. Keep the application bound to localhost unless it must be reached directly; nginx should be the public entry point where you can centralize TLS, request limits and access logs.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

No universal Antigravity-generated Node command is established, so use the scripts in your project’s package.json. Do not guess a start command, port, database migration order or required environment variable. Test the service locally on the VPS before adding the public DNS record.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Connect the domain and enable HTTPS

Point DNS at the VPS

At your DNS provider, create an A record for the domain pointing to the VPS’s IPv4 address. Add an AAAA record only if the server is correctly configured for IPv6. Decide whether www is an alias or a separate name and include every name in nginx’s server_name. DNS changes can take time to appear at different resolvers; verify with DNS lookup tools before treating an unresolved name as an nginx failure.

Obtain a certificate

Once HTTP works for the domain, use a supported ACME client such as Certbot to request a certificate and configure nginx. The client and distribution package determine the exact command. Ensure inbound port 80 is reachable during validation, then test an HTTPS request and confirm that every page, asset and API endpoint uses the intended HTTPS origin.

Schedule renewal checks and verify that the renewal service can reload nginx. A certificate that works today but cannot renew is a future outage, so include renewal status in routine maintenance.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Running Antigravity on the VPS is a different workflow

CLI over SSH

One recent third-party account claims that an Antigravity command-line session on Linux can detect an SSH environment and print a URL that you open in a local browser to authorize. This is not an official, verified Google procedure, so confirm the current command and authentication behavior in the tool’s own documentation before relying on it. Do not expose an administrative development interface directly to the public internet. A jump host or VPN is safer than opening an extra management port, and SSH itself should still be key-protected and restricted.

IDE through Remote Desktop

A Windows VPS can run a graphical Antigravity IDE accessed through Remote Desktop. Disconnecting the RDP window may leave the session running, depending on the Windows configuration. That keeps a development process alive; it does not replace nginx, DNS, TLS or the application’s production process. Treat the desktop session as an administration convenience, not as the public hosting layer.

Managed hosting versus a self-managed VPS

A managed Git-based host can build and serve a repository with less server administration. A VPS is appropriate when you need direct control over the operating system, custom services, private networking or a database that the managed option cannot provide. Compare the operational consequences rather than only the monthly price, which varies by provider and has no single established amount.

Decision factor Self-managed VPS Managed build-and-host service
Control Full control of OS, nginx, runtime and network Constrained to the platform’s supported runtimes and settings
Maintenance You apply updates, harden SSH, monitor services and restore backups The provider handles much of the host maintenance
Build output You choose where and how artifacts are built and copied The platform usually builds from Git and publishes its configured output
HTTPS and domains You configure DNS, certificates and renewal The platform may automate certificate provisioning
Best fit Custom stacks, persistent services and teams comfortable with Linux operations Sites where speed and reduced operations matter more than host-level control

Troubleshoot by symptom

Symptom Likely cause Checks and correction
The build fails on the VPS but worked locally Different runtime version, undeclared dependency, missing environment variable or case-sensitive import Use the lockfile, match the required runtime, inspect the first build error and rebuild from a clean checkout.
The home page loads but refreshing /about returns 404 Missing SPA fallback Add the appropriate try_files fallback, or use real per-page files for a multi-page site.
CSS or JavaScript returns 404 Incorrect base path or copied the wrong directory level Inspect the browser network panel, verify asset URLs and ensure the directory containing index.html is nginx’s root.
nginx returns 403 File or directory permissions prevent traversal or reading Check ownership and permissions on the web root and each parent directory; do not solve it by making the entire filesystem world-writable.
The domain shows the default nginx page The intended server block is not enabled or the request’s hostname does not match Run nginx -t, verify the enabled configuration and confirm the exact server_name.
HTTPS validation fails DNS still points elsewhere, port 80 is blocked, or the hostname is absent from nginx Check A/AAAA records, firewall rules and the HTTP server block before requesting the certificate again.
Node pages return 502 Bad Gateway The application is stopped, listening on another port, or bound incorrectly Check the process manager and application logs, curl the private port locally, and match nginx’s proxy target to the actual listen address.
Old files remain after deployment The upload copied over the previous release without removing deleted assets Use an atomic release directory or carefully use rsync --delete against a dedicated web root.

A repeatable update and rollback routine

  1. Build and test the exact commit locally.
  2. Create a uniquely named release directory on the VPS.
  3. Copy or build the artifact there and verify ownership and permissions.
  4. Run a local HTTP check against the new release.
  5. Switch nginx’s root (or the application symlink) to the new release.
  6. Run sudo nginx -t and reload nginx.
  7. Check the public home page, a deep link, static assets, forms and any API calls.
  8. Keep the previous release until the new one has passed your smoke tests, then remove old releases according to your retention policy.

For server-rendered applications, deploy code and migrations in an order that is backward-compatible with the currently running version. Take database backups before destructive migrations, and keep logs outside the public web root.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Pre-launch checklist

  • The production build completes from a clean checkout.
  • Development URLs, test data and debug logging are removed.
  • The output folder and hosting model are confirmed.
  • Secrets are stored outside Git and browser-exposed values are understood to be public.
  • The VPS is updated, key-protected and firewall-restricted.
  • nginx serves the intended directory or proxies to the intended private application port.
  • DNS records match the configured hostnames.
  • HTTPS works and renewal is scheduled.
  • Deep links, assets, forms, APIs and error pages have been tested.
  • A backup and rollback path exists before announcing the site.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More from the Wire

  1. World desk4 min
    How to Spot an AI Voice Scam Before Sending MoneyDon’t rely on how a caller sounds. Pause, call back through a known number, and verify the emergency with another trusted person before sending money.
  2. Mountain View desk4 min
    Google’s SynthID Detector: How to Check AI-Generated Images, Video and AudioGoogle’s SynthID Detector looks for an embedded watermark in supported images, video and audio. Here is what its results do—and do not—show.
  3. Redmond desk20 min
    How to create a link to File or Folder in Windows 11Windows 11 gives you several ways to point to a file or folder without moving or duplicating it. You can create a desktop shortcut,…
Recommended PC Tool
Recommended PC Tool
Windows Errors? Fix Them Before They SpreadFree repair scan
Crashes, No Sound, or Screen Glitches?Free driver scan

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.