Fixed issue #5 with new syntax.
To deploy the project, follow these steps:
-
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.
-
Choose a Hosting Provider: You can deploy the build folder to any static site hosting service like Vercel, Netlify, or GitHub Pages.
-
Upload Build Folder: Upload the contents of the
buildfolder to your chosen hosting provider. -
Configure Environment Variables: Ensure that any necessary environment variables are set in your hosting provider's dashboard.
-
Access Your Deployed Application: Once deployed, you can access your application at the URL provided by your hosting provider.
-
Monitor and Maintain: Regularly check your application for updates and monitor its performance.
- Clone the repository:
git clone https://github.com/niro2-1/blog-deploy.git cd blog-deploy - Install dependencies:
npm install
- Start the development server:
npm start
- Run tests:
npm test
- To rotate your AWS_SECRET_ACCESS_KEY, follow these steps:
- Go to the AWS IAM console.
- Select the user whose keys you want to rotate.
- Create a new access key and download the key file.
- Update your application to use the new key.
- Delete the old access key once the new key is confirmed to be working.
To set up a staging environment, follow the instructions in the blog-site repository under the docs/staging-environment.md file.