I have a Laravel and Vuejs app working perfectly on my local machine, when i deployed it to an EC2 instance running ubuntu on amazon, the app is not loading the vue components on the browser. The only thing showing is the preloader in welcome.blade.php
Nothing else is showing. i checked all logs; laravel.log, nginx error logs and there is no error in any of the log files
Related
I am running a Laravel Docker with PHP and Nginx. This container is sitting at the back of Traefik.
For content from /public/assets/admin/ , I am getting a 302 error and then 404. The application runs well in the local LAMP environment.
Any clue ? Adding couple of pictures.
I had experience in setting up linux ubuntu server with apache2. the laravel project is run successfully and everything works accordingly. the same code I applied in centos apache2 and it failed.
eg:
simple login post form using html laravel blade is not submited to the backend laravel code when the button is clicked.
no idea what is going on.
it just redirects to the same login page even the correct crediential is entered correctly.
according to the networking showing in google chorme debugging tools.
The Laravel project is within this directory
/home/abccom/public_html/abc/public
laravel 5.3
Centos 7
Apache/2.4.46 (cPanel)
Cloudflare
anyone can help??
I have an application which has developed on laravel 5.7 and it's index.php is moved to root directory. Now when i tried to make the server up using php artisan serve command.
The website was loading but assets files like css and js not loading. Entire console showing errors and when i tried to see the asset file code through http://localhost:8000/assets/js/app.min.js
It was showing Error 404
The page you are looking for does't exist.
Can any one help me i am trying to resolve from past two days
Entire app is loading only view is not proper due to non loading of asset files
My components are not being rendered when I upload my project on a live server. It works fine on my local machine after I run npm run production when I upload the changes none of the vue components are being loaded in the page. On my local machine the vuejs dev tools tells me the site is running in production but when I go to the live server in the console it says
You are running Vue in development mode.
and on the browser taskbar it says
Vue.js not detected
I have no idea how to fix it. I saw a post saying I should upload the node_modules folder to the live server. But I doubt that would change anything plus it would take too long. How can I fix this?
I found out that the server was loading an older copy of the js file. So I had to apply cache busting by adding a phantom query to the end of the file. <script type="text/javascript" src="/js/app.js?v=2.4.1"></script>
I have a Codeigniter project which is already created in XAMPP server and its working fine.For some reason, my client wants to shift it to Nginx server. In Nginx server, only default controller is loading.the other pages are showing 404 error. Is there anything I need to setup in Nginx server.I have an another Codeigniter project which is working perfectly in Nginx server.
Is there anything I have to change in my Codeigniter file
I have tried with
http://localhost/Project1/website_progressing/ this is working fine
home.php is my default controller which shows 404 error
http://localhost/Project1/website_progressing/home