Member-only story

Deploy static website or an Ionic app to AWS S3 bucket.

Ankit Maheshwari
4 min readDec 17, 2024

--

My articles are open for everyone; non-member readers can read the article by clicking this link.

Photo by John Schnobrich on Unsplash

To deploy your Ionic app’s www folder to an AWS S3 bucket after testing it with http-server, follow these steps:

Prerequisites: Prepare Your App and Upload to S3

First ensure your Ionic app is built.

Build your Ionic app for production:

ionic build --prod

Step 1: Test Locally with http-server

Before deploying, you can confirm your app works locally using http-server.

http-server is a lightweight Node.js based server for serving static files locally.

Install http-server

If you don’t already have it, install http-server globally using npm:

npm install -g http-server

Serve the www Folder

Navigate to the directory containing the www folder (your Ionic project root):

cd /path/to/your/project
http-server ./www

This will:

  • Start a local server on…

--

--

Ankit Maheshwari
Ankit Maheshwari

No responses yet