Can I see server logs or something equivalent on AppHarbor? - appharbor

I just pushed my app to appharbor. I don't need full-on google analytics (and I can't use it since mostly my app is about dynamically creating rss feeds) but would just like to get a general idea how often my site is being hit and the types of urls that people are hitting.
Normally I would just keep an eye on the severlog but that doesn't seem to be available on appharbor. How can I get something equivalent?

I recently turned on the logentries add-on available in Appharbor and it has been a godsend for solving some server-side errors on my asp mvc 3 app. Extending my code to log routing requests would be a simple few lines of code.

Related

Server side rendering or pre-rendering in Laravel and Vuejs

I have a web application in Laravel 7 and Vuejs2 which have some pages like home, about, cities and help. these page need to be crawled by search engines.
I have tried both ways, prerendering and server side rendering without success.
for pre-render there is only one package prerender-spa-plugin which is very old and not updated since 5 years.
server-side-rendering is also difficult because my web app is already designed and is going to production, it is hard to implement that now, and also not recommended to implement server-side-rendering because of 5 pages.
any suggestion are appreciated to make these 5 pages crawelable by search engine.
update:
my application contain other pages and components which do not need to be SE optimized, pages like user account and profiles.
Overall, I recommend the usage of Nuxt if you want something that could deliver a professional experience, on top of managing all the flexibility that you wish to have with an SSR/SSG tool.
Here is a more detailed answer regarding your currently available tools to achieve some SEO-crawlabale content: https://stackoverflow.com/a/69075962/8816585
You mentioned that you wished to keep some pages as SPA-only, this is also feasible thanks to the generate.exclude key of the configuration: https://stackoverflow.com/a/66472634/8816585

SharePoint 2016 - Add Direct Line chat bot in Master Page to make it available in all the pages

I want to make my Direct line chat bot (using MS bot framework v4 - c# code ) to be available in all pages of my SharePoint 2016 on premises site, I'd a thought to adding the script to my site's master page so that it will be available in all the pages of my SharePoint site.
Before heading to that plan, i want to get some expert ideas on the following,
Is that a good idea or is there any other better idea.
If anyone successfully achieved it, i want to know how it affects
the SharePoint performance, since my chat bot's UI is customized
using Jquery, bootstrap, fontawesome..etc. Hence i've this
performance doubt.
How easy is to revert the changes, if anythings goes wrong, since i've no test environment and i'm taking a risk of testing it in production.
please guide me with your ideas and experiences.
I would recommend putting it in a SPFx web part (more dynamic, future ready) or just a script editor web part (depending on your need).
Performance would only be affected client-side. It's all going to be client side stuff anyhow. It won't affect the backend of SharePoint/server.

Is there a way of changing the public "502 error" page on Google Cloud?

Using a flex environment in GCP for deploying a Spring Boot application.
There are a couple of instances where I've legitimately had to take down the site while I do some maintenance. Customers should see something friendlier in these instances, eg "Hola, back with you in a second, we're just doing some essential maintenance".
Any idea where such an option would be, is it some additional stuff in the app.yaml?
You can just deploy a different version that shows a nice error page while you update the main app.
The error "502" on Google App Engine is handled by Google front end and is not possible to replace for a custom page.

Clarification of Web API in WebForm

I have created Web API.I know the Main advantage of Web API is cross domain application (I can call Web API in all platform). My question is ,Is there any performance issue When I call Web API in ASP.net WebForm???
I would like to know the below scenario
1.I Can use Direct SQL Query in .aspx Page
2.I Can use Web API and generate JSON to DataTable
I would like to know which one is fast and better to use.......
I have tried in JQuery,the performance is fine but I would like to call in ASP.net WEb Form
Where you call the API from or from what type of app makes no difference. Your issues are going to come from how you use it and what you do with the results of the calls.
Yes, you can get JSON data from the API and yes you can convert that to a DataTable, technically no issue there, but the performance will depend on how much data you retrieve in one go and how many transformations you go through to get it to the state you need for your webforms controls.
You're talking about using a dead tech ( webforms ) and trying to fit some things into how that works, which while possible, is not really the way to build anything these days.
SQL in aspx kinda says it all.Assuming you have an old app, that you just do updates to then just do what you can, but I would start looking into modern ways of building web apps. You don't have to keep using webforms controls anymore.
You can't talk about scalability when you still have stuff thrown in aspx pages. You need to start thinking about a proper separation of concerns, think about testing your stuff, retrieving only the data you need etc etc. Just because you add WebApi in the mix, that doesn't mean you'll get all the benefits, if everything else does not catch up to the required standard.
There is no inherent performance issue with using WebAPI, aside from the overhead of an additional network hop.
In real world terms, I think this would be negligible and outweighed by the benefits:
You get the 'cross platform' benefit you mentioned.
Better scalability as your 'service' and 'web' concerns are seperated and can be scaled appropriate to the load they need to serve.
The service layer functionality is re-useable, for example if you wanted to develop an app later.

How to create a web application?

I have a question. I need to create a web application, which should work and look like a normal desktop app, so with windows, dialogs etc. without refreshing every time the site, but I am not sure what should I use for that. I have only a little experience with php (one rather simple site).
I suppose I need ajax on the client site to do that (maybe jQuery), but what should I use on the server site and how can I load e.g. whole page without refreshing site? Should I use PHP or python or something else? Maybe with some frameworks?
Thanks for any advice.
If you want to have rich client side interaction, consider using a MVC /MVVM js framework as:
backbone.js;
ember.js;
knockout.js;
angular.js.
Everyone has pros and cons, here you can find a smart comparison resource.
Once you download the bootstrap stuff [css, js, images], no page reloads will issue, and the app will flow like a desktop one.
All data is fetched from and persisted to the server: further request are made in JSON / XML format, in a RESTful fashion possibly.
You can setup such webservice in many many ways, among the others:
Sinatra (Ruby);
Symfony (PHP);
Django (python).
As I am more familiar with MS technologies I would use ASP.NET MVC, and then on the client side you can use Telerik controls which are good and free. jQuery is also a great option for the client side development. For developing ASP.NET MVC you can use the Visual Studio Express which is free as well.
However, I do not know your specifications. Maybe it would not be good enough for you. Another option that you have is using WPF (MS again), with which you can really develop very rich behavior web applications.

Resources