Cpanel don't refresh my last production React? - reactjs

I upload my app React on Cpanel (O2Switch) since March. On server, my app refresh every weeks... Stranger things but it was working, no problem. My last production is a formular for contact the organization, on localhost it works but is'nt visible on server. I don't have cookies on this server. I've change my Web browser, i refresh my page... so..
I contact O2Switch, they do not know what it is.
Do you know where problem's come ?
https://github.com/Dodox17000/mobileminute17

Related

How to fix site functionality caching?

I'm using google cloud platform to serve a website. Whenever I update the website (create a build from the terminal and upload it to the Google bucket), users have been reporting site breakages until they hard refresh in browser or clear their caches manually.
Is there a way to configure the bucket to prevent this from happening?
Just to clarify, it's not images/files that are being cached, the whole site stops working when the bucket is updated until a user hard reloads the page in their browser

React Multiple domains pointing to one App with different Profile names

We have a react app hosted on IIS. We have the following scenario. A shop registers on this site say with a shop name MyShop. Our website will automatically have a landing page called inshopshape.com/MyShop which works fine. Now we want to have shops to have their own domain say for example MyShop.com. Once they go in this URL they should automatically go to inshopshape.com/MyShop WITHOUT changing the address URL on browser. So someone could go to www.myshop.com/products/test and under the hood it should show inshopshape.com/myshop/products/test
Kindly note the following
Website is hosted on IIS
This is a single page app done with react
If the solution provided is one with rewrite rules on IIS then you should keep in mind that react routes should still work when users navigate to the website
I can do a forwarding with masking but that's not good for SEO

Voyager keeps reverting database into my deployed version on production server

I deployed my Laravel application with Voyager admin panel into Heroku. When I add/edit/delete any product from dashboard, every change reverts after approx 30minutes after the update. There are no error message shown anywhere in my application and everything seems to be working just fine. I want to control my data from admin panel in production server, but I cannot fix this issue after googling for a week. What could've gone wrong that caused this issue? Any suggestions?

How to route from AngularJS page to a page running using ReactJS in two different ports

I have an application which has a landing page developed using AngularJS. The login screen is developed using AngularJS and when the user logs in, the token should be saved in local storage and go to the landing page.In that Landing page there is a button. When I press that button the page should route to a page which is developed using ReactJS which runs on a different server running in a different port .
(Eg. React app in port 3000 and Angular port is 4000)
When the page is redirected to the ReactJS page, that page should be able to access that user token which we previously saved in local storage . Also I want to know the security aspect of saving the token in local storage and is there any other alternatives to do that.
OK.. not sure if this will suffice as an answer, but why do you want it to run on two separate ports? I have worked on such a project and in my case it was like this..
MYAPP/landing - developed in angular
MYAPP/dashboard - developed in react
so, basically I have the React prod build in one of my subdirectories and the Angular prod build in the rootDirectory and had configured in my server config files to handle the requests accordingly(I used apache websever)..

Pixik brokes my website

I have a blog, programed by me in PHP. I use Piwik to track my visitors. I rewrite my website, in PHP with Symfony. I delete my old website except piwik and I put my new website. I use the same database and the same folder for piwik than before.
Now, when I go to Piwik, the first page works but after, my website is down during about ten minutes, Piwik and the all site. Chrome says the website is innacessible, with the error : ERR_CONNECTION_TIMED_OUT.
I try to reinstall Piwik, with the last version, but I have the same problem : after the installation, when I go to the dashboard, the site is down.
I use a shared server. Pwik works in the server with my precedent website or with Joomla!, on a website with some hundred vistors by day.
There are nothing in the logs, except index.htm and index.php
Why and how resolves this problem ?
Thanks,
Jérémie

Resources