[jbosstools-issues] [JBoss JIRA] (JBIDE-18900) CordovaSim: Can't run default FeedHenry app locally

Ilya Buziuk (JIRA) issues at jboss.org
Fri Dec 12 10:45:31 EST 2014


    [ https://issues.jboss.org/browse/JBIDE-18900?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13027401#comment-13027401 ] 

Ilya Buziuk commented on JBIDE-18900:
-------------------------------------

< if that file is going to be there
[~maxandersen], this is actually a great remark. There are several thing I want to figure out(please, correct me if I'm wrong):
1)  This is the basic basic FH Hybrid app - hyhttps://github.com/feedhenry-templates/helloworld-app. This app contains gruntfile.js with relevant info. However, it's not possible to import it to JBDS. As I understand it's just a template, which will be used for creating full value app via FH magic.
2) *ToolsProject-Cordova-App*, which Burr has provided me with,  is a full value hybrid app that was created via FH magic and can be imported as a Hybrid app to the studio. The app works with local and remote server just fine. However, there is *no* gruntfile.js in it. I have debugged this app and find out how that switching between local and remote server happens in the runtime in feedhenry.js in *CloudHost.prototype.getHost* function. Basically, it checks the parameter availability and decides what server (remote / local) to use. Assuming, that this check happens in the runtime it's not possible to find out the port before start up. I guess if we want to automate this process we will need to ask user via some preferences / dialog whether he wants to use local server and where this server is running 

> CordovaSim: Can't run default FeedHenry app locally
> ---------------------------------------------------
>
>                 Key: JBIDE-18900
>                 URL: https://issues.jboss.org/browse/JBIDE-18900
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: cordovasim
>    Affects Versions: 4.2.1.Final
>            Reporter: Ilya Buziuk
>            Assignee: Burr Sutter
>             Fix For: 4.3.0.Alpha1
>
>         Attachments: configuration.png, cordovasimFH.png, hello_tom.png, preferences.png, ToolsProject-Cloud-App.zip, ToolsProject-Cordova-App.zip
>
>
> Basically, the situation is the following: 
> 1. *ToolsProject-Cordova-App.zip* - is a basic FH hybrid app (all the app does is saying Hello + 'username' from the input field )
> 2. To run this app one simply needs to unpack the archive and import it as a cordova project to the studio
> 3. The application will work with a *remote* server like a charm !hello_tom.png|thumbnail!
> 4. However, there is an option to use *local* server instead of *remote* one
> 5. *ToolsProject-Cloud-App.zip* - is a app for running local server via grunt task runner
> 6. In order to run local server one needs:
> - unpack the app
> - run *npm install .*
> - run *grunt serve*
> Need to find the way to made CordovaSim use this *local* server



--
This message was sent by Atlassian JIRA
(v6.3.11#6341)


More information about the jbosstools-issues mailing list