SP2013: I created a SharePoint hosted App (Hello World program) in VS2012. Now to upload/install the app, I tried powershell, Below is powershell commands for installing app:
$spapp = Import-SPAppPackage -Path "D:\demoAppSPHosted.app" -Site "http://spsite:2222/" -Source DeveloperSite
Install-SPApp -Web "http://spsite:2222/sites/devApp"-Identity $spapp
I am not able to pass this hurdle:
Install-SPApp : The specified URL is not in the same Site Collection as this App