How to open an EJS file with Live Server - visual-studio-code

I have a Server App created with Nodejs using "ejs" view engine.
When I start the Server and is running on the port, I click the URL and it sends me to my APP with no problem.
When I try to do it with Live server is when I am facing issues.
In Live Server instructions says: [NOTE: In case if you don't have any .html or .htm file in your workspace then you have to follow method no 4 & 5 to start server.]
That is what I do and I get redirected to, please see image below:
Could any one help me with this issue, please ?
Thanks

You can see it here
i wrote app.listen(3000);
thats mean i can access from 3000 port on my browser.
like this.
Just write to your server.js "localhost:(your-port)"
and you are ready to go

Related

Can Javascript's console.log() be redirected to a file?

Can Javascript's console.log() be redirected to a file ?
I am currently working on very simple node.js app that is hosted on Namecheap .
I can not see output from console.log(), but even being able to redirect it to a text file that I can examine by FTPing into my account later would be a help.
I tried using my web browser developer tools, but I can not see output of console.log() from the node.js app running on shared hosting by Namecheap. I can see it when doing so on own local developer machine.
Given that you're on Node, you can just call your application this way:
node foo.js > file.log
Instead of:
node foo.js

Azure publish website connecting database

So, I have an app that I want to deploy in azure. I was successfully able to deploy app to my azure url that I created. The Html page loads correctly, the JavaScript is working as expected. However, my data is not loading at all. When I looked in the debugger it was giving me a 500 error. I am not sure where I am going wrong. I do have my connection string in my web.config. My database is located on another server. I am not sure how to give azure access to it and then connect it to my help. Please let me know if you need more help.
[The first one is the console error][1]
[The second one is what my app looks like][2]
[My updated config][3]
[1]: https://i.stack.imgur.com/4gYhY.png
[2]: https://i.stack.imgur.com/gLtvz.png
[3]: https://i.stack.imgur.com/N5gzS.png
[error][1]
[1]: https://i.stack.imgur.com/kX4Jp.png
So, I figure out the problem. I am using a feature called Azure app service hybrid connection. In this setting I set how it should access the server on which my database is located at. Once these settings were made, I just published my app as usual and it worked and loads the data from the database.
These links helped me:
https://learn.microsoft.com/en-us/azure/app-service/app-service-hybrid-connections
https://learn.microsoft.com/en-us/azure/biztalk-services/integration-hybrid-connection-overview

Intalio Ajax Forms pointing to localhost

Anyone working with Intalio|BPMS?
I'm trying to implement a process using the Comunity Edition, and I'm having a problem I can't seem to solve.
The process has an AJAX Form and if I go to ui-fw in the server using localhost everything works, but if I try to access the server remotely using the url it doesn't.
The iframe for the AJAX Form is pointing to localhost and not the url.
From the very bad foruns at Intalio, I've checked /tried:
deploy from the designer using the url
finding every mention of localhost in the process deploy dir, and also in the var/conf
Still no luck.
Any ideas anyone??
Thanks in advance
Ricardo, IIRC the form is deployed according to the settings you use in the deployment manifest. I believe you can also set an other host name in the deployment manifest to deploy to localhost, but declare a different host name for the form and processes.

PHP Slow to process soap request via browser but fine on the command line

I am trying to connect to an external SOAP service using PHP and have written a small php test script that just connects to the service and performs a simple request to check everything is working.
This all works correctly but when I run via a browser request, it is very slow taking somewhere in the region of 40s to establish the initial connection. When I do the same request using the exact same script on the command line, it goes through straight away.
Does anyone have any ideas as to why this might be?
Cheers
PHP caches the wsdl in /tmp. If you run from the command line first, the cache file will be owned by whatever user you're running the script as, and apache won't be able to read the cache. The wsdl will have to be downloaded and parsed every time which will be slow.
Check the permissions of /tmp/wsdl*.
Maybe external SOAP service trying to check your IP, and your server has ICMP allowed, when your local network - not.
Anyway, this question might be answered more clearly by administrator of external SOAP service :)
Is there a difference between the php.inis that are being used?
On a standard ubuntu server installation:
diff /etc/php5/apache2/php.ini /etc/php5/cli/php.ini
//edit:
Another difference might be in the include paths. Had this trouble myself on a local test server, it didn't actually use the soap class that was included (it didn't include anything, because the search paths weren't valid), but it included the built-in soap_client class.

asmx .net 2.0 web service

i created a web service, upload it to my site on a remote server.
i tried to browse it but i cant, i also tried to add web reference to his adress through vs08 but the same problem happened there.
Ok, based on your comment:
i didnt get any errors, only when
beowsing it i get a 404 page not found
error, the name space is
"http://www.poppetz.com/poppetz"; but
the service is actually in
http://www.popetz.co.il/Services/Poppetz.asmx
maybe this is the problem??? i
deployed it with vs08 through ftp –
Chen Kinnrot (2 mins ago)
The namespace of your service will have nothing to do with you being able to access it.
If you put a plain old test.html that echo "hello world" back to you and put that in the same directory as your service, can you access that?
ie: http://www.popetz.co.il/Services/test.html
Can you get access to the machine hosting the web services. If so, if you look in the IIS manager, can you see the ASMX in the web site you are expecting it be in?
If not, then start looking at the IIS configuration and make sure that web site directory is the same folder as you are dumping the web service files.
10x everyone, the server provider change some iis config and everything works...\