uploading app on bluehost shared server
Hi,
I just finished my first project with a sqlite server
I have an old website running on a bluehost shared server where i want to upload my app. Now I have read that shared hosting is not recommended and so on, but i do want to give it a try on bluehost before buying some new serverspace.
i'm trying to upload my app on a subdomain (project.mywebsite.com) so the current website can stay online.
I registerd a new subdomain on my bluehost account, that is pointing to a new carpet in the public_html
I uploaded all my files to a new folder laravel on the root.
My questions:
Do i have to upload all the project files to my server? the carpet node_modules and vendor are taking forever...
what about my .env file? I cant find clear information on this matter. Do i change my APP_ENV to production and APP_DEBUG to false, and thats it?
APP_ENV=production
APP_DEBUG=false
my index.php file is pointing to my laravel folder.
I backed up twice because i'm coming from a folder inside the public_html. Is this the way to go?
require __DIR__.'/../../laravel/bootstrap/autoload.php';
$app = require_once __DIR__.'/../../laravel/bootstrap/app.php';
and the .htaccess
<IfModule mod_rewrite.c>
<IfModule mod_negotiation.c>
Options -MultiViews
</IfModule>
RewriteEngine On
# Redirect Trailing Slashes...
RewriteRule ^(.*)/$ /$1 [L,R=301]
# Handle Front Controller...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]
</IfModule>
right now my project.mywebsite.com is giving me a white page with nothing on
I have read this comment on a old post
I recently deployed a Laravel site to bluehost. Since I use my bluehost account for several sites, i have a subdirectory for each inside my /public_html directory. I deployed the entire laravel site to the subdirectory for my site, then I created a subdomain to point to the laravel /public folder for its document root. so deploy to /public_html/mysite/ subdomain doc root=> /public_html/mysite/public Then the laravel config works with its original settings.
Is this a better way?
Thanks!
Please or to participate in this conversation.