I'm using Figwheel to compile and debug my ClojureScript app. It is awesome!
I have one issue, which is that when my app is running locally with HTTPS (https://localhost:3000), Figwheel doesn't recognize it and doesn't connect to the browser.
Do I need to add anything to my project to solve this?
I found what the problem was. Figwheel connects to the app through HTTP and not HTTPS, so I had to allow loading of unsafe script in order for it to work.
Related
I had look into similar question in the stack overflow and tried all the solutions given there, but nothing works for me.
I have a Flex Web application running in localhost with tomcat, i have used Mongrel plugin in Flash Builder to run tomcat.
I am using Firefox browser.
When I try to debug my application it is throwing below error :
The Flash Builder debugger failed to connect to the running
application.
Ensure that:
For in-browser applications, you are running the debugger version of Flash Player.
For network debugging on a mobile device, you have a reliable network connection to the device, and port 7935 is open on your
machine's firewall.
Device connection help
link : error screenshot
I did check with netstat for port 7935 and there is no service running on this port.
I also added the solutions in catalina.properties file as suggested by others in related question but it did not worked out.
kindly help me fix this problem.
Thanks in advance!
The tomcat application is probably not serving the debuggable swf from flashbuilder project. What I have in a (I believe) similar setup is: also change the output directory from your flex project to the webcontent folder of the tomcat application.
Flashbuilder generally doesn't create index.html from the template but ${project.name}.html instead. Make sure you use that when trying to debug.
{workspace}/flexapp/src/MyApplication.mxml
{workspace}/webapp/WebContent/bin-debug <-- oupput folder of flexapp
If you start the tomcat application from Flashbuilder now it will include the debuggable SWF from the flex project.
The flex output URL should then point to http://localhost:8080/myapplication/bind-debug/MyApplication.html?Authorised=true&debug=true
I setup live edit in PhpStorm and it works great. While implementing routing in my application, I configured PhpStorm to use a routing script using the Built-in Web Server run configuration. At this point, live edit stopped working because it seems to work only with the built-in webserver and not the PHP built-in web server. (Technically, it didn't stop working, rather there were two run configurations: live edit where the links returned a 404 and a routing configuration that doesn't have live edit.)
Is it possible to use both live edit and a routing script?
Does anyone have any workarounds to using live edit or similar functionality when working on an app that uses routing? I currently have a keymap (Alt-R) setup for Reload in Browser.
I'm using PhpStorm 10.0.2 (PhpStorm-143.790) on CentOS 7.
Note: I found two issues relating to live edit and routing but neither was helpful.
https://youtrack.jetbrains.com/issue/WEB-15762
https://youtrack.jetbrains.com/issue/WI-20824
Thanks
A hint in the 2nd URL above provided a suitable workaround. The key lies in the fact the link between the browser and PhpStorm is not tied to the URL; only the tab. To make this work, you need two run configurations:
A JavaScript Debug configuration for live edit. Make sure live edit is working.
A PHP Built-in Web Server configuration with the router script enabled.
Run the JavaScript Debug configuration and it will open a tab in Chrome linked to PhpStorm. Then start the PHP Built-in Web Server configuration and change the "live edit" tab to the URL for the built-in web server. Any changes will automatically refresh the tab using the PHP Built-in Web Server configuration which contains the router functionality.
This concept can also be applied to any functionality not supported by the built-in web server, like SSL. You just need a 2nd web server (built-in or external) and change the live edit tab to the 2nd URL.
I have an application that displays my razor views of servicestack endpoints as expected on localhost. However when deployed to azure websites a particular page displays the metadata page for some reason. I don't know how to work out what has gone wrong as it all works on my machine :).
For reference, the view name matches the return DTO. I've tried the site in release mode on my machine. All other pages display as expected on azure and locally. I've cleared the cache and re-started the site from the control panel. I'm running out of things to try.
Any ideas appreciated.
Some general troubleshooting approaches that might help you:
Use Postman, cURL or Fiddler to watch the HTTP traffic between your computer and the website, looking for clues in HTTP headers, requests and responses.
Using FileZilla, connect to your website via FTP. Download the content of /site/wwwroot to a new directory on your local machine. Add this as a virtual website in IIS and run it locally. You'll be running exactly the same code that is deployed.
Instrument your application with tracing in a similar fashion to ASP.NET Tracing and look for exceptions or any other odd behavior.
Refer to Troubleshooting a Web Site for additional resources.
I'm trying to turn a simple webapp into an Android app by using Phonegap Build. My webapp has some simple jQuery AJAX methods (GET/POST). I'm not sure how to go about this -- when I upload the zip to Phonegap Build, the zip includes the html file, the css file, and a js script which is basically the Node.js server.
My HTML file includes some javascript that relies on GET/POST from the server, but it never runs in the android app that is built. I have tried whitelisting the localhost in the config.xml file (10.0.2.2) but this is also not working. Anyone have an idea? Should I not be using Phonegap Build? Thanks.
PhoneGap will not allow you to run any node.js script. Node.js - is server side solution.
What you are looking for is to make front-end in html+css+js, that will speak to your node.js using AJAX. But node.js have to run on hosting that will be available online. So that way your application will speak to node.js process that will server all clients (PhoneGap applications) via HTTP (AJAX).
Please remember, that StackOverflow helps with specific code problem, not knowledge or generic questions.
I'm coding an admin panel with a web interface that will only be run locally (not client-facing or hosted on an external server), and it would be helpful if it could launch an application from an <a href="">. Is this possible? I understand that this could be a browser security thing, but I also know that there are iTunes and App Store links (not quite sure how those work either), and I assume this is also possible for launching "x" application. How can I do this?
it is only possible if the application you want to start registers its own URI scheme with the OS. Though you could write your own app that starts other apps on demand. You'll have to register your own scheme then.
Found a solution! Instead of using an <a href="">, I've decided to run a shell command from a PHP script that just does open application_name.app and redirect back to the referrer.