1
0
mirror of https://github.com/laravel/valet.git synced 2026-02-05 08:30:07 +01:00

62 Commits

Author SHA1 Message Date
Dries Vints
0208251cee Revert ngrok arm binary (#1258) 2022-05-26 14:18:06 +02:00
Matt Stauffer
e69d448245 Update Ngrok (valet share) to lowercase domains before matching 2022-05-18 11:47:30 -04:00
NasirNobin
ca2924daca Self code review 2022-03-23 01:35:30 +06:00
NasirNobin
4f098a8028 refactor with which-php command 2022-03-22 15:26:53 +06:00
NasirNobin
794fbc0c57 wip 2022-03-22 01:10:06 +06:00
NasirNobin
ee6a17ea57 wip 2022-03-21 19:50:43 +06:00
Dries Vints
35c62b608e Update valet 2022-02-01 16:20:12 +01:00
Udara Jay
921c08967a Remove extra "
The extra " in line 86 breaks the installer.
2022-01-18 13:08:44 -05:00
Dries Vints
3768e199b9 Add ARM support for ngrok 2022-01-18 11:44:17 +01:00
Bramus
0d5014a9e8 Pass USER as envvar when relaunching valet using sudo 2020-04-29 16:37:03 +02:00
comes
979826887c Update valet 2019-12-21 21:00:52 +01:00
Chris Brown
99f0bd19c5 Apply suggestions from code review
Co-Authored-By: Matt Stauffer <mattstauffer@users.noreply.github.com>
2019-12-10 23:17:49 -05:00
Chris Brown
998e4c32df Allow valet share to support multiple domains from same app
This PR allows passing a specific domain name to `valet share` in order to have the app be served for that domain.
Now how it works is this:
- (NEW) if a domain name is passed, it checks whether it matches a link (which would be required for multiple domains served by same app project), and uses that
- if a domain name is NOT passed, it looks up any links for current directory, and uses the first found link
- else falls back to current project foldername

It also still allows passing through custom ngrok parameters if desired (ref: #112), as either the 2nd parameter (no domain name passed) or (NEW) 3rd parameter

Fixes #537
2019-12-06 20:35:35 -05:00
Chris Brown
df7e46ebea Preserve User (and env) when calling sudo commands
Fixes #321
Creds to @Patistar
2019-04-17 20:40:45 -04:00
Denis Golubkov
bb8202f7a6 Update valet
Suppress error message if file not exists
2019-03-22 18:06:33 +03:00
Sahib J. Leo
001058414b #691 Surround with quotes all paths which might contain blank spaces. 2018-12-27 11:24:41 -05:00
Sahib J. Leo
b05c773e1d Addressing issue #678 2018-12-05 09:00:59 -05:00
Chris Brown
b803a37855 Change valet share to use port 60
Since the current TCP port 88 clashes with Kerberos, changing it to port 60 which IANA shows as unassigned, and other databases show as not being used in general practice.

Several alternates were researched, but show (although limited use, nevertheless possible) clashes with other systems, including ports 47, 81-90, 8080-8090, and 100. Various sources were referenced, and the overall conclusion is that 60 seems to be the safest and least likely to conflict.

Tested against a few limited firewall configs without issue.
Tested with both fresh new valet installs and an older install upgraded from 2.0.x.
2018-11-12 16:00:05 -05:00
Sergio Bruder
f7eb13435f quieting grep output on valet share test 2018-09-14 17:46:07 -03:00
Sergio Bruder
0e74928d33 fix share 2018-09-14 04:23:47 -03:00
Sergio Bruder
ac7b371d49 fix for share of secured sites 2018-09-14 03:39:33 -03:00
Chris Brown
16c58aa9da Remove extra message text from tld command output, for valet share cmd
The `valet share` command relies on the `tld` command outputting only the TLD and not a status message.
This removes the status message that was added with the recent tld update.
2018-09-13 20:22:11 -04:00
Matt Stauffer
7eb1aec410 Merge pull request #449 from eberkund/master
Move ~/.valet to ~/.config/valet
2018-08-30 08:33:28 -04:00
Erik Berkun-Drevnig
0fd37b0fed Change paths from ~/.valet to ~/.config/valet 2017-09-28 14:44:14 -04:00
Lynn
5e667b9afb Remove outdated comment
Always needs sudo since commit: fd595b5c71
2017-07-06 16:29:02 +08:00
René de Kat
8fc59dd748 Added option to pass custom parameters to ngrok
This makes it possible to add custom parameters to ngrok. For example:
--region=eu
-subdomain=YOUR_SUBDOMAIN

Some features, like -subdomain, are only available with the paid version of Ngrok.
2016-08-14 09:53:13 +01:00
Adam Wathan
92ec56e63a Fix bash error, update version 2016-08-08 15:26:02 -04:00
Adam Wathan
13cf1a85e1 Remove Composer-less functionality from master branch 2016-08-08 15:07:48 -04:00
Adam Wathan
0936f090b3 Remove current-domain in favor of domain with no args (#61) 2016-05-12 21:16:21 -05:00
Taylor Otwell
fd595b5c71 run commands as sudo 2016-05-11 19:40:44 -05:00
Taylor Otwell
e47034618d Fix resolution. 2016-05-11 13:31:17 -05:00
Taylor Otwell
d8d4df6288 remove variable 2016-05-11 11:28:04 -05:00
Taylor Otwell
60c9de3746 comment 2016-05-11 11:27:11 -05:00
Taylor Otwell
9b176f310f use variable 2016-05-11 10:42:04 -05:00
Taylor Otwell
c32b31d55e simplify dir checks 2016-05-11 10:41:34 -05:00
Taylor Otwell
6a1e3c9af9 added sudoers entries. 2016-05-10 21:45:49 -05:00
Taylor Otwell
a87db83d23 call back into source 2016-05-10 16:39:52 -05:00
Taylor Otwell
6345ee9503 move scripts 2016-05-10 15:06:29 -05:00
Taylor Otwell
33aac51c25 dont double sudo if already sudo 2016-05-10 14:40:52 -05:00
Taylor Otwell
fbe5c8b04c tweaking scripts 2016-05-10 14:03:38 -05:00
Taylor Otwell
9ee6eaa308 tweaking scripts 2016-05-10 13:55:26 -05:00
Taylor Otwell
f0556ce554 correcting a few script problems 2016-05-10 13:26:39 -05:00
Taylor Otwell
97f7ae2342 organize better 2016-05-10 08:29:24 -05:00
Taylor Otwell
c651f2cbc4 allow updating domain dynamically 2016-05-06 10:03:57 -05:00
Jason P. Scharf
a920450f56 Quote all variables in shell script 2016-05-06 09:25:55 -04:00
Taylor Otwell
2cc1b4082e prune on every command 2016-05-05 01:18:48 -05:00
Taylor Otwell
9433d3bfda fix 2016-05-04 17:39:43 -05:00
Taylor Otwell
650ea00cbf sub prompt other commands 2016-05-04 14:17:46 -05:00
Taylor Otwell
afe184cb8c rename file 2016-05-04 14:10:01 -05:00
Taylor Otwell
41f06e0a9d Fix bugs 2016-05-04 13:59:57 -05:00