How to Upload Shared Server Api

Asked

Viewed 460 times

0

I’m having a hard time climbing my shared server-enabled api.

My frontend is angular, I gave an ng build --Prod and through Filezilla transferred to the folder public_http on the hostgator server.

The Laravel I passed all the folders of my project to the public_http, I downloaded for ssh the server and installed the composer. Through ssh I can access the public_http folder and run, for example "php artisan serve". My question is how to get my api to run on my domain. Ex: www.dominio.net/api/login All my files are already in the public_http folder, but if I try to access the api through my domain I get 404.

What is missing?

1 answer

1

Try to do the following: if Voce at the time of installing Laravel gave your project the api name, the folder to which you should paste the files should be like the example below. www.dominio.net/api/

after uploading the files try:

1 - Enter the file . env and edit the credentials of the database, enter the credentials of the hostgator database.

2 - Execute composer install

3 - Execute php artisan key:generate

4 - Execute php artisan migrate

Show 2 more comments

Browser other questions tagged

You are not signed in. Login or sign up in order to post.