![]() ![]() Here, I was able to add the key and value pair for my environment variable. Then my eye caught the side menu where Environment Variables is written. gitignore and therefore not committed, and I had no way to access the server on which the app is hosted. In my code I was using an environment variable, and I was confused on how Amplify will be able to read it since the. Start by navigating to the Amplify console in AWS and click on the Connect App button.Īfter selecting your code hosting provider, Amplify will ask for read-only access to your account and you can go on with selecting a repo and a branch to deploy from.Īfterwards, you'll be asked to verify the build process generated for you, and soon enough your app will be live! □ Amplify's generated URLs follow this format, so your website URL may look something like this. It also has other awesome services such as deploying test branches, or generating preview builds when a PR is created. It connects directly with your GitHub or GitLab repository, has continuous deployment set up on each push on master, and is totally free. Express backend hosted on a Lightsail instanceĪmplify is an AWS service for hosting SPAs.I'm not claiming this is the best way but it's just what worked for me. I had been wanting to practice using AWS so all the services used here are on that platform. ![]() There are many many articles and tutorials on how to deploy this kind of app to production, to the point where I decided not to follow any of them and make up my own way. It was my first time working with this stack and everything worked smoothly on my local, but then came the time for deployment. I recently launched a web application that consisted of a React frontend that communicated with an Express server.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |