Configure AWS Route 53 to host a web site in AWS
To be able to fully control the routing of a DNS name use Route 53 Create a new Hosted Zone In the Route 53 console click the Create Hosted Zone button Create a new public Hosted Zone Return to the domain registrars website and set the name servers to…
Error: EPERM: operation not permitted, rename
Error: EPERM: operation not permitted, rename ‘C:\Users\MY_USERNAME\.config\configstore\update-notifier-nodemon.json.3604946166’ -> ‘C:\Users\MY_USERNAME\.config\configstore\update-notifier-nodemon.json’ In case of this error…
Test Socket.IO connectivity
To test the connectivity to the Express Socket.IO server use the following command from a terminal window npx: installed 11 in…
Blue-green deployment in AWS ECS Fargate with CodeDeploy
We will use CodeDeploy to automate the application deployment in our AWS ECS Fargate cluster. Create an AIM role for CodeDeploy to assume the ECS service role In the AWS console navigate IAM and click the Roles link Click the Create role button Click the…
Host the server container in an AWS ECS Fargate cluster
We have already created a Docker image for the server using Nginx. We will create an AWS ECS Fargate cluster in AWS and host the container there. Create an ECR repository for the image Select the Elastic Container Registry Create a new repository Enter a…
Host a static web application in AWS S3
We will host our static website in AWS S3. Install the AWS SDK Node.js module Configure the AWS CLI with the access key and secret key in the ~/.aws/credentials file to access your AWS account. Host the static website of the client in an S3…
Deploy a new version of a task in an ECS Fargate cluster
To deploy the new version of a Docker container image and launch new tasks with the new version Build and push the new Docker image Build the new Docker container image Push the new image to ECR (Elastic Container Registry) Create a new revision of the…
Phaser 3 game sprites are not displayed on iOS, iPad and iPhone
If the Phaser 3 game sprites are not displayed on iOS change the type in the index.js file to type: Phaser.CANVAS In CANVAS mode Phaser cannot set the background color with this.cameras.main.backgroundColor or this.backgroundColor. Set the background…
Attach an AWS EBS volume to a Linux server
Format and mount the volume List the available disk devices and their mount points The nvme1n1 volume is not yet mounted Create a partition on the volume List the existing partitions Create a new partition Check the partition list lsblk Detect the new…
has been blocked by CORS policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource
When your website calls the Socket.IO backend API from another domain, the browser console displays the error message Access to XMLHttpRequest at ‘http://…:3000/socket.io/?EIO=3&transport=polling&t=N7Y-Fot’ from origin…