0

In the past month I work on pure php laravel framework which the project is already done and running on live. This month our team asking for revising the project to reactjs with laravel php framework. Which the development stage is already done this past few weeks. Our team trying to deploy in production in which they encounter one problem when we access the website Ex. www.myproject.com the page show the root project folder it look like this.

Note: That my project is fresh and we not configure anything to htaccess.

error

The scenario before i deploy the project:.

  1. npm install

then

  1. npm run production

    to get the final index.js file which will contain all the code bundled Compiled

Package.json: package.json file

Webpack.config.js Webpack

Web server

Web server

DevGe
  • 1,381
  • 4
  • 35
  • 66

1 Answers1

-1
<VirtualHost *:80>
    ServerAdmin webmaster@localhost
    ServerName appname.com
    ServiceAlias www.appname.com
    DocumentRoot /var/www/appname/public

    <Directory "/var/www/appname/public">
            Options FollowSymLinks
            ReWriteEngine On
    </Directory>

    ErrorLog ${APACHE_LOG_DIR}/error.log
    CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>

Source

Dan
  • 102
  • 9