[
https://issues.jboss.org/browse/JBIDE-18900?page=com.atlassian.jira.plugi...
]
Ilya Buziuk commented on JBIDE-18900:
-------------------------------------
[~maxandersen], I get the point with parameters - that's fair, I haven't thought
about it from that angle ;-). I have created a separate issue for that - JBIDE-19032
#1/2 Ok I got it. Please correct me if I'm wrong. The proposal is the following:
having 2 *different launch configurations* of the *same launch config type*. This approach
would work and it's easy to do. But it seems to have 2 drawbacks:
- no obvious UI for changing default server url
- it's not clear how to switch between FH's remote and local server
#3 well, IMO the original problem is *it's not clear from the user perspective how to
force CordovaSim use local FH server*. And separate launch configuration seems to solve
it. Now it's clear how to trigger between local and remote server. Also it's clear
how to change server url (for instance to
http://127.0.0.1:5543) cause we have a separate
UI for that. Basically, I personally think that this approach is *not* ideal due to the
fact that in order to use local server one needs to open launch config and do it manually.
But at the same time it seems to be more straightforward.
On balance, we have 2 alternatives now with the following +/-:
*(1) leave old launch type:*
+) simple
+) do not require API breakage (if we not implementing JBIDE-19032 for 8.1.0)
-) not obvious from the user perspective
*(2) new launch type*
+/-) not simple compared with (1), but not intricate either
+) separate FH UI / more straightforward
-) will probably require API breakage (ideally I want to refactor some stuff in
CordovaSim)
Third option is to implement (1) for 8.1.0 and (2) for master.
WDYT?
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: Ilya Buziuk
Fix For: 4.3.0.Alpha1
Attachments: configuration.png, cordovasimFH.png, hello_tom.png, newLaunch.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)