I create a new project using laravel 5.8, and it is running on localhost:8080. How can I make it running on other url e.g https://swap.maximine.io.test?
I think we need some extra information how you created the project and how you want to run the project.
But you can change the port where the application is running on by using:
php artisan serve --port=80
To use that domain, do you own this domain? Or do you want to use it locally?
You can add the domain to you hostfile pointing to you localhost and use it as an test environment
Related
im new in laravel and i have done my first project, I have xampp,mysql and windows server 2012 (installed with composer and laravel 7). i'm running the application in server via command below
php artisan serve --host=[ip] --port=[port]
application is running fine within the network. However, it seems super slow. I'm not sure if this the correct way of deploying it into production. Do you have any recommendation/instructions where can i run/deploy apps within the resource that I have.
Speed of your laravel project depends on many parameters like hardware config (CPU,RAM,...) and also number of users and level of requests and processes. But consider that for an app in production it's better to not use php artisan serve command. It's only for development environment. I don't that how much you know about linux but I suggest you to change your stack and use linux as your production os with nginx as web server alongside php-fpm for running your app in production. But for now you should config xmapp's apache web server to run your application from project's public folder. Here is a link you can use: https://insidert.medium.com/setting-up-laravel-project-on-windows-2aa7e4f080da
good luck
This is my first time moving my Laravel RESTful api to the production server in CentOS environment using apache. To make it work I have to use
APP_URL=production_ip_address
MARKET_BASE_URI=127.0.0.1:8000
and php artisan serve or i
get cURL error 7
Is there any better way to do so if my APP_URL and MARKET_BASE_URI is same? This works on my local environment with the same URL and no issues, but Connection issues when i use the same in production environment.
use
MARKET_BASE_URI=127.0.0.1:9000
run
php artisan serve --port=9000
I have a Laravel Project that I develop in PhpStorm. I use the build in PhpStorm web server for development and debugging. (localhost:8000) Now I need to be able to access that server from another device within the same network.
Google search and jetbrains.com have not been very helpful. I have tried this (https://intellij-support.jetbrains.com/hc/en-us/community/posts/207020155-phpstorm-and-http-server-localhost-only-) but it did not work.
Any help?
EDIT:
I found the problem. Since the web server is launched via artisan, it ignores my PhpStorm settings. I needed to change the launch parameter, like so:
php artisan serve --host=0.0.0.0 --port=8000
So to start explaining things, I would first like to enumerate what I'm using.
I'm using Laravel 5.4 and XAMPP.
I want to deploy my project in a localhost only. So we're starting the project's server with php artisan serve --host 192.168.254.11 --port 80 where the IP stated there is the IP of the server.
In that way, we have to type the url 192.168.254.11 to access the project. Is there any way to change that without getting an online server?
EDIT: I managed to change it with tweaking of hosts file. But for it to be possible to be accessed by the other users, they have to do the same. Is there a way to only change the hosts file of the server and still be accessible by other users at the same time?
Now I just finished my laravel web application and want to upload to vps (digital ocean).In local, i usually trying to use by typing php artisan serve ,then go to access http://localhost:8000/ ,and everything is fine. But on vps ubuntu, how to type to run my laravel application,I already upload my project to git and pull from vps. I follow this instruction,but this instruction is just installation.Please guide me. Thanks in advance.