Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

Blog Deploy

Fixed issue #5 with new syntax.

Deployment Instructions

To deploy the project, follow these steps:

  1. Build the Project: Run the following command to create a production build:

    npm run build

    Build Issue: If you encounter an error during the build process, ensure that all dependencies are correctly installed and check for any missing environment variables.

  2. Choose a Hosting Provider: You can deploy the build folder to any static site hosting service like Vercel, Netlify, or GitHub Pages.

  3. Upload Build Folder: Upload the contents of the build folder to your chosen hosting provider.

  4. Configure Environment Variables: Ensure that any necessary environment variables are set in your hosting provider's dashboard.

  5. Access Your Deployed Application: Once deployed, you can access your application at the URL provided by your hosting provider.

  6. Monitor and Maintain: Regularly check your application for updates and monitor its performance.

Project Setup Instructions

Prerequisites

  • Ensure you have Node.js installed.
  • Install Git for version control.

Installation

  1. Clone the repository:
    git clone https://github.com/niro2-1/blog-deploy.git
    cd blog-deploy
  2. Install dependencies:
    npm install

Running the Project

  • Start the development server:
    npm start

Testing

  • Run tests:
    npm test

Secret-Key Rotation Procedure

  • To rotate your AWS_SECRET_ACCESS_KEY, follow these steps:
    1. Go to the AWS IAM console.
    2. Select the user whose keys you want to rotate.
    3. Create a new access key and download the key file.
    4. Update your application to use the new key.
    5. Delete the old access key once the new key is confirmed to be working.

Staging Environment

To set up a staging environment, follow the instructions in the blog-site repository under the docs/staging-environment.md file.

About

GitHub Actions workflow that builds blog-site and deploys to S3+CloudFront.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors