Skip to content

Commit 7ad9e63

Browse files
committed
fix: change default APP_PORT to 8085 to avoid conflicts
1 parent f6a92ab commit 7ad9e63

File tree

5 files changed

+17
-13
lines changed

5 files changed

+17
-13
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,14 +69,14 @@ gh repo create my-app --template Chemaclass/laravel-claude-toolkit --public --cl
6969
# Setup the project
7070
cd my-app && composer setup
7171

72-
# Start development server
73-
./vendor/bin/sail up -d
72+
# Start development server (Sail provides Docker containers)
73+
APP_PORT=8085 ./vendor/bin/sail up -d
7474

7575
# Optional: Remove template's GitHub Pages files
7676
rm index.html .nojekyll
7777
```
7878

79-
Access: http://localhost
79+
Access: http://localhost:8085
8080

8181
**Stack:** PHP 8.4 | Laravel 12 | SQLite | Tailwind CSS 4 | Sail
8282

config/filesystems.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
'public' => [
4242
'driver' => 'local',
4343
'root' => storage_path('app/public'),
44-
'url' => rtrim(env('APP_URL'), '/').'/storage',
44+
'url' => rtrim(env('APP_URL', ''), '/').'/storage',
4545
'visibility' => 'public',
4646
'throw' => false,
4747
'report' => false,

index.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@
210210
</div>
211211
<div class="config-field">
212212
<label for="app-port">App:</label>
213-
<input type="number" id="app-port" value="8080" class="port-input" oninput="updateCommands()">
213+
<input type="number" id="app-port" value="8085" class="port-input" oninput="updateCommands()">
214214
</div>
215215
<div class="config-field">
216216
<label for="vite-port">Vite:</label>
@@ -231,11 +231,11 @@
231231
</div>
232232
<div class="cmd-row">
233233
<span class="prompt">$</span>
234-
<code id="cmd-3"><span class="cmd">APP_PORT=</span><span class="file">8080</span> <span class="cmd">VITE_PORT=</span><span class="file">5174</span> <span class="cmd">./vendor/bin/sail up -d</span></code>
234+
<code id="cmd-3"><span class="cmd">APP_PORT=</span><span class="file">8085</span> <span class="cmd">VITE_PORT=</span><span class="file">5174</span> <span class="cmd">./vendor/bin/sail up -d</span></code>
235235
<button class="copy-inline" onclick="copyCmd(this, 3)" title="Copy">copy</button>
236236
</div>
237237
<div id="localhost-hint" class="localhost-hint" style="display: none;">
238-
<span style="color: #6b7280;">After running, your app will be available at</span> <a id="localhost-url" href="http://localhost:8080" target="_blank" class="localhost-link">http://localhost:8080</a>
238+
<span style="color: #6b7280;">After running, your app will be available at</span> <a id="localhost-url" href="http://localhost:8085" target="_blank" class="localhost-link">http://localhost:8085</a>
239239
</div>
240240
</div>
241241

@@ -651,7 +651,7 @@
651651
}
652652

653653
function getAppPort() {
654-
return document.getElementById('app-port').value || '8080';
654+
return document.getElementById('app-port').value || '8085';
655655
}
656656

657657
function getVitePort() {

resources/views/welcome.blade.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@
213213
</div>
214214
<div class="config-field">
215215
<label for="app-port">App:</label>
216-
<input type="number" id="app-port" value="8080" class="port-input" oninput="updateCommands()">
216+
<input type="number" id="app-port" value="8085" class="port-input" oninput="updateCommands()">
217217
</div>
218218
<div class="config-field">
219219
<label for="vite-port">Vite:</label>
@@ -234,11 +234,11 @@
234234
</div>
235235
<div class="cmd-row">
236236
<span class="prompt">$</span>
237-
<code id="cmd-3"><span class="cmd">APP_PORT=</span><span class="file">8080</span> <span class="cmd">VITE_PORT=</span><span class="file">5174</span> <span class="cmd">./vendor/bin/sail up -d</span></code>
237+
<code id="cmd-3"><span class="cmd">APP_PORT=</span><span class="file">8085</span> <span class="cmd">VITE_PORT=</span><span class="file">5174</span> <span class="cmd">./vendor/bin/sail up -d</span></code>
238238
<button class="copy-inline" onclick="copyCmd(this, 3)" title="Copy">copy</button>
239239
</div>
240240
<div id="localhost-hint" class="localhost-hint" style="display: none;">
241-
<span style="color: #6b7280;">After running, your app will be available at</span> <a id="localhost-url" href="http://localhost:8080" target="_blank" class="localhost-link">http://localhost:8080</a>
241+
<span style="color: #6b7280;">After running, your app will be available at</span> <a id="localhost-url" href="http://localhost:8085" target="_blank" class="localhost-link">http://localhost:8085</a>
242242
</div>
243243
</div>
244244

@@ -652,7 +652,7 @@ function getProjectName() {
652652
}
653653
654654
function getAppPort() {
655-
return document.getElementById('app-port').value || '8080';
655+
return document.getElementById('app-port').value || '8085';
656656
}
657657
658658
function getVitePort() {

tests/TestCase.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,9 @@
66

77
abstract class TestCase extends BaseTestCase
88
{
9-
//
9+
protected function setUp(): void
10+
{
11+
parent::setUp();
12+
$this->withoutVite();
13+
}
1014
}

0 commit comments

Comments
 (0)