Posts

Showing posts from February, 2018

Host multiple Website on one Amazon EC2 instance Using IIS

Image
Hosting multiple websites on IIS server Hosting multiple websites on Amazon Ec2 using IIS is simple, all you need to do is add a firewall inbound rule, edit the site binding in IIS, add a custom TCP rule in the ec2 security group to support the port you are going to be using. For example, you have two websites, one is the web app and the other is the Web API, and you need to use the same IIS server, the first thing to do is: 1) Add a custom TCP Rule in the ec2 dashboard under NETWORK & SECURITY tab 2) Open the RDP file and configure open IIS  and create the two websites. after creating the websites, you edit the binding for the two websites using port 81 on the API and port 80 on the web app. 3) Click on the start menu and type firewall, click on the windows firewall and advanced security, click the "Inbound Rule" and create a new rule. Select rule type "Port" and click next, specify port 81, allow connection from "public,

Nativescript-Cannot find a compatible Android SDK for compilation. To be able to build for Android, install Android SDK 22 or later.

Image
Installing typescript and the SDK required, was a pain in the ass, but after spending days on the internet, I finally found a way to get it working. Before getting NativeScript to display the “No Issues Detected”, it was very difficult. The common problems people are facing is not being able to get NativeScript to find the SDK to user and also the right version. The issue: Cannot find a compatible Android SDK for compilation. To be able to build for Android, install Android SDK 22 or later. Run $ android to manage your Android SDK versions. You need to have Android SDK 22 or later and the latest Android Support Repository installed on your system. Run $ android to manage the Android Support Repository After installing NativeScript and the required JDK and going through the documentation online, the error above was thrown. Solution I found out that NativeScript was looking at another folder in the “c:\users\USR \ AppData\Loc