GithubHelp home page GithubHelp logo

Comments (6)

cretueusebiu avatar cretueusebiu commented on May 20, 2024

For production you'll have to set the APP_ENV=production in your .env file.

from laravel-vue-spa.

sgasser avatar sgasser commented on May 20, 2024

I tried again but no luck...

This are the steps for the installation:

  • git clone [email protected]:cretueusebiu/laravel-vue-spa.git
  • cd laravel-vue-spa/
  • cp .env.example .env
  • update APP_ENV=production
  • composer install --no-dev
  • php artisan key:generate
  • php artisan jwt:secret
  • Edit .env and set your database connection details
  • php artisan migrate
  • yarn
  • npm run production
  • php artisan serve

But I get always this error:
selection_048

from laravel-vue-spa.

cretueusebiu avatar cretueusebiu commented on May 20, 2024

What do you get if you dd(app()->environment()); ?

The Dusk tests run npm run production and work just fine.

from laravel-vue-spa.

sgasser avatar sgasser commented on May 20, 2024

Where should I write dd(app()->environment());

php artisan env returns
Current application environment: production

npm run production returns no error.

I get the error Uncaught ReferenceError: webpackJsonp is not defined when I open http://127.0.0.1:8000

from laravel-vue-spa.

cretueusebiu avatar cretueusebiu commented on May 20, 2024

Try using a domain for your app with Valet or Homestead.

from laravel-vue-spa.

wa05 avatar wa05 commented on May 20, 2024

Same problem here http://inmobiliariaforti.com/administracion_alquileres/public/ ...

from laravel-vue-spa.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.