Closed rafaelteb closed 3 years ago
Hi @rafaelteb,
Thanks for using reporting this issue and for using Creative Tim products.
Could you please send the .env for both the frontend and backend, please? Also, you've mentioned the npm run build. Can you please let us know why is that? Thank you very much.
Best, Updivision Team
Hi there @rafaelteb,
We would like to check if the issue was solved and if there is anything else we can help with. Please let us know if you have any other issues.
All the best, Updivision Team
Jo @teamupdivision, sorry for my late answer.
I used this repo on github and the documenation it provides: https://github.com/creativetimofficial/vue-material-dashboard-laravel
I did not do anything specific with the .env file. Just added the database. Here is the .env file (o boy I forgot something small somewhere right):
APP_NAME=Laravel
APP_ENV=local
APP_KEY=base64:Ojwx/O0E8YfUyQe5hYSioTlddddddddddddddddddddd
APP_DEBUG=true
APP_URL=
LOG_CHANNEL=stack
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=laravel_json_api_vue_dashboard
DB_USERNAME=username
DB_PASSWORD=dfdagdg!
BROADCAST_DRIVER=log
CACHE_DRIVER=file
QUEUE_CONNECTION=sync
SESSION_DRIVER=file
SESSION_LIFETIME=120
REDIS_HOST=127.0.0.1
REDIS_PASSWORD=null
REDIS_PORT=6379
MAIL_DRIVER=smtp
MAIL_HOST=smtp.mailtrap.io
MAIL_PORT=2525
MAIL_USERNAME=null
MAIL_PASSWORD=null
MAIL_ENCRYPTION=null
MAIL_FROM_ADDRESS=null
MAIL_FROM_NAME="${APP_NAME}"
AWS_ACCESS_KEY_ID=
AWS_SECRET_ACCESS_KEY=
AWS_DEFAULT_REGION=us-east-1
AWS_BUCKET=
PUSHER_APP_ID=
PUSHER_APP_KEY=
PUSHER_APP_SECRET=
PUSHER_APP_CLUSTER=mt1
MIX_PUSHER_APP_KEY="${PUSHER_APP_KEY}"
MIX_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}"
Concerning the build command. I used it because I wanted to test it out: on a production server with fqdn. I followed the info on the documentation:
This link: https://demos.creative-tim.com/vue-material-dashboard/documentation/
Hi @rafaelteb,
Thanks for this. Could you share the .env for the frontend too, please?
All the best, UPDIVISION Team
Hi there @rafaelteb,
We would like to check if the issue was solved and if there is anything else we can help with. Please let us know if you have any other issues.
All the best, Updivision Team
Hi @rafaelteb,
Just checking if the issue was solved and if there is anything else we can help with. Please let us know if you have any other issues.
All the best, Updivision Team
Version
latest
Reproduction link
Nginx file:
Operating System
Ubuntu
Device
server
Browser & Version
firefox, latest
Steps to reproduce
What is expected?
I use the npm command, output tells me to look at http://example.com:8081 Everything looks fine and login should be working with default given login
What is actually happening?
I get some sort of backend, but cannot login. It says: "Invalid credentials"
Solution
Do you maybe have a nice example of how nginx should server the app? I could not find anything online. I tried running vue-material-dashboard over https by adding "vue.config.js":