You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to livro-laravel
Olá Pessoal!
Estou iniciando com o Laravel e consegui criar o primeiro projeto sem problemas. Estou usando o Vagrant e o projeto está rodando no endereço http://localhost:8000. Porém, eu preciso criar outro projeto e entendi que deveria rodar o comando php artisan server --port=8001, para direcionar para outra porta.
Quando rodo o comando eu recebo msg de sucesso no terminal, indicando q o projeto subiu na porta 8001, mas ao digitar no browser http://localhost:8001 não é identificado o endereço.
Grato pela ajuda!
Luciano
Juliano Petronetto
unread,
Oct 5, 2015, 7:53:27 PM10/5/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to livro-laravel
Tenta usar o próprio servidor embutido do PHP
php -S localhost:8001
Luciano Queiroz
unread,
Oct 5, 2015, 10:19:34 PM10/5/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to livro-laravel
Olá Juliano!
Agradeço pela ajuda. Não obtive sucesso. É exibida a msg 'Listening on http://localhost:8001' mas ao digitar no browser somente a porta 8000 funciona.
Alguma outro ideia? Você sabe como mudar a porta do vagrant?
Juliano Petronetto
unread,
Oct 6, 2015, 8:36:16 PM10/6/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to livro-laravel
Dei uma pesquisada rápida e encontrei que talvez a adição do sudo possa ajudar:
sudo php artisan serve --port=8001
Luciano Queiroz
unread,
Oct 6, 2015, 10:32:54 PM10/6/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to livro-laravel
Não funcionou dessa forma também.
Acabei conseguindo resolver de outro jeito. Alterei o arquivo /etc/hosts e o Homestead.yaml e agora consigo acessar via browser digitando projeto1.app ou projeto2.app