-
Notifications
You must be signed in to change notification settings - Fork 338
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I can't get the SSR project live #2
Comments
Hi Mehmet, I did some tests with the angular9-app.git repository and your modifications. 1/ git clone https://github.com/ganatan/angular9-app.git 2/ Your files without modifications
3/ Three files with modifications
4/ Solution 5/ Note Tell me if it works. main.server.ts
angular.json
package.json
|
Thank you. I checked it the way you said and corrected what needed to be fixed. I added "angular / service-worker". My "npm run build: ssr" and "npm run serve: ssr" commands work fine. There is no problem with these. When I look at the "localhost: 4000" page source in the hidden tab, the page source occurs. There's no problem with that. But it doesn't work when I want to get the project live on the server. When I run the project with "serve: ssr" I get a warning like this. Is this the problem? https://prnt.sc/r38s4c On the server, my settings are as follows: https://prnt.sc/r38o0b My current settings and my package.json file are like this: https://gist.github.com/MehmetSert/d8eb11b1e5ad59b4be6a75eaf50d57fe Maybe I'm doing the Node.js setting wrong in Plesk Panel. But when Angular is 8 it works with the same adjustment. |
I made ssh access to the server. I ran "main.js" with "node". It worked on "ipAdress: 4000" without any problems. I think I am making errors in the Node.js definitions in Plesk Panel. I will try to solve it. |
Hi, I'm desperate for Universal. The sample project in Angular.io is also problematic. I've been trying for a long time but there is always a problem. Do you think we should give up this love? |
Deployment with a simple VPS works. |
Unfortunately. I think we are having a server related problem. When I compile the same project with Angular 8, ssr works. When I update and compile to Angular 9, ssr does not work. |
SSR Not work on angular 9.. why ? I dont know. |
Following the angular documentation it works. I have made this tuto |
I have already following this tutorial all work. But the code source is not SSR. SEO dont work, html is same of non SSR |
It will probably work if you open the page source link in the hidden tab. I wish this was my problem :) SSR does not work for me, it does not work on localhost and does not work on the server. |
No.. Nothing work in local and on Live server ! :/ |
I agree with you But SSR works on the server side with google robots Use curl to verify if With live demo Another proof use SEOQUAKE (SEO Toolbox) to verify SEO on angular.ganatan.com/ I apply ssr also on www.ganatan.com and angular.ganatan.com I hope it will help In french we say |
I'd watch that. But at the moment I can't launch my app on nodejs on cpanel I will soon abandon the idea of using the Framework js unfortunately :( |
Thank you very much for your answers. I clone your project and cannot publish it on my own server. I cannot publish it in my own project in the same way. However, I can publish an Angular 8 version of my own project. I can't do that in Angular 9. The server is the same server, the settings are the same. I use VPS and Plesk panel. Since it runs on localhost, the problem is very likely server originated. But Angular 8 works. I believe the problem I was having was caused by the server, but I have no idea what configuration needs to be done. Do you have any suggestions? I am writing these messages to you because you have used Angular 9 and broadcast it with SSR and you have used it. Please excuse. |
Plesk with nodejs application ? In Cpanel same (With PASSENGER) server don't launch so I'm stuck. |
To test I took a Web Plesk - VPS Classic on OVH The stuff for a simple VPS works is here |
Thank you so much. I will continue to research and try. I will follow here. |
@ganatan Hello, do you have any ideas why this happening? Pretty weird as to me, same server returns different responses whether it's a curl request or regular browser request? |
Hi,
No ideas.
but curl is the proof that SEO works.
Another proof use SEOQUAKE (SEO Toolbox) to verify SEO on
angular.ganatan.com/
Le sam. 1 août 2020 à 13:32, Valentin Saik <notifications@github.com> a
écrit :
… Actually you can't see the ssr results on your browser (chrome for example)
Perhaps because of angular 9 and the browser side
But SSR works on the server side with google robots
Use curl to verify if
for example on localhost
curl http://localhost:4000/ > ssr-results.txt
With live demo
curl https://angular.ganatan.com/ > ssr-results.txt
and verify the content of ssr-results.txt
you will see the html code (here the text features)
Another proof use SEOQUAKE (SEO Toolbox) to verify SEO on
angular.ganatan.com/
Hello, do you have any ideas why this happening? Pretty weird as to me,
same server returns different responses whether it's a curl request or
regular browser request?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#2 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AH3OPOP3FT44LGX72RWTOCDR6P4LFANCNFSM4KTXIHRA>
.
|
Hello,
I want to start by thanking you for your sharing.
I cannot publish the project after the SSR compilation process. I did not have such a problem in the Angular 8 version. I can't publish after updating to 9.
I can compile the project. My "browser" and "server" folders are created in the "dist" folder. I am loading this to the server from the plesk panel and setting it to read the server / main.js file with node.js. However, the project does not open. Timed out.
Could you help?
server.ts
main.server.ts
tsconfig.app.json
tsconfig.server.json
tsconfig.json
package.json
The text was updated successfully, but these errors were encountered: