Deploy project built by laravel and Vuejs to Free Account


#1

I want to deploy and run my web based application that built on local computer using laravel 5.6 and Vuejs 2.5.7 to free 000webhost account. I had upload my project onto server but it was not run correctly. When I run it, It only shows files and folders. My account does not give to me SSH access also.

so please let me know how should I upload, configure and run my project on 000webhost free account.
thank you


#2

#3

I had Try this. But it comes this error.

Forbidden
You don’t have permission to access / on this server.

Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.

how can i fix this error


#4

Please paste the .htaccess contents here


#5
<IfModule mod_rewrite.c>
    <IfModule mod_negotiation.c>
        Options -MultiViews -Indexes
    </IfModule>

    RewriteEngine On

    # Handle Authorization Header
    RewriteCond %{HTTP:Authorization} .
    RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]

    # Redirect Trailing Slashes If Not A Folder...
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_URI} (.+)/$
    RewriteRule ^ %1 [L,R=301]

    # Handle Front Controller...
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^ index.php [L]
    
</IfModule>

#6

when I run the project, it only come to the login page. I cannot access any other route in my project. how can i fix this issue…


#7

Try renaming .htaccess to htaccess.txt


#8

Hi @esymastesting!

Please upload your entire ZIPPED project to your 000webhost site. Reply after doing so.