I have installed Laravel, Voyager, and Voyager Front-end in an instance of Google Cloud Compute Engine (used the latest versions).
Using Ubuntu 18.04 as OS.
Apache as server (even tried Nginx resulting to the same 404 error).
Pushed the files to github with the following files/directories in the .gitignore file:
/node_modules
/public/hot
/public/storage
/storage/*.key
/vendor
.env
.phpunit.result.cache
Homestead.json
Homestead.yaml
npm-debug.log
yarn-error.log
Pulled the files to another instance of Google Cloud Compute Engine.
Installed the web application using the following commands/procedures:
// created database
// installed nodejs and npm
$ sudo mkdir voyager // name of laravel directory
$ cd voyager
$ sudo git init
$ sudo git remote add origin https://github.com/oropezaqb/voyager.git
$ git remote
$ sudo git config credential.helper store
$ sudo git pull origin master
// configured Apache or Nginx
// setup .env file
$ sudo composer install
$ sudo php artisan key:generate
$ sudo composer dump-autoload
$ sudo php artisan migrate
$ sudo npm install
$ sudo npm run dev
$ sudo * * * * * php /path-to-your-project/artisan schedule:run >> /dev/null 2>&1
$ sudo chgrp -R www-data storage bootstrap/cache
$ sudo chmod -R ug+rwx storage bootstrap/cache
Virutal Host config:
I have this in /etc/apache2/sites-enabled/000-default.conf....
<VirtualHost *:80>
<Directory /var/www/html/voyager/public>
Options
Indexes
FollowSymLinks
MultiViews
AllowOverride All
Require all
granted Order allow,deny
allow from all
</Directory>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html/voyager/public
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log
combined
</VirtualHost>
But the home page displays a 404 error message.