Skip to content

Commit 803311c

Browse files
pi1814vinckr
authored andcommitted
updating docs to handle the .env misnaming in the pubspec and the port mismatch
1 parent 1eb9080 commit 803311c

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
ORY_BASE_URL=http://localhost:3005
1+
ORY_BASE_URL=http://localhost:3000

code-examples/protect-page-login/flutter_web_redirect/README.mdx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ samples, guidance on mobile development, and a full API reference.
1818
## Run your Flutter Web App
1919

2020
```shell-session
21-
flutter run -d web-server --web-port 4005
21+
flutter run -d web-server --web-port 4000
2222
```
2323

2424
```mdx-code-block
@@ -27,14 +27,14 @@ import SdkEnvVar from '@site/src/components/SdkEnvVar'
2727
<SdkEnvVar />
2828
```
2929

30-
Start the Ory Cli tunnel on [http://localhost:3005](http://localhost:3005) and
31-
set the proxied application to [http://localhost:4005](http://localhost:4005).
30+
Start the Ory Cli tunnel on [http://localhost:3000](http://localhost:3000) and
31+
set the proxied application to [http://localhost:4000](http://localhost:4000).
3232

3333
```shell-session
34-
ory tunnel --port 3005 http://localhost:4005
34+
ory tunnel --port 3000 http://localhost:4000
3535
```
3636

37-
Open the browser on [http://localhost:4005](http://localhost:4005) you should
37+
Open the browser on [http://localhost:4000](http://localhost:4000) you should
3838
now see the Ory managed Login page.
3939

4040
## Release Build
@@ -50,7 +50,7 @@ We then need an HTTP server to serve the files, we will use
5050
[dhttpd](https://pub.dev/packages/dhttpd).
5151

5252
```shell-session
53-
dhttpd --host localhost --port 4005 --path build/web
53+
dhttpd --host localhost --port 4000 --path build/web
5454
```
5555

5656
See here for more information on

code-examples/protect-page-login/flutter_web_redirect/lib/main.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import 'package:flutter_web_redirect/services/auth.dart';
77

88
Future main() async {
99
// load the env file
10-
await dotenv.load(fileName: "env");
10+
await dotenv.load(fileName: ".env");
1111

1212
final baseUrl = dotenv.get("ORY_BASE_URL").toString();
1313

code-examples/protect-page-login/flutter_web_redirect/pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: flutter_web_redirect
22
description: "A Flutter Web App integrated with Ory."
33

4-
publish_to: 'none'
4+
publish_to: "none"
55
version: 1.0.0+1
66

77
environment:
@@ -24,4 +24,4 @@ flutter:
2424
uses-material-design: true
2525
# Load our env file from the root directory
2626
assets:
27-
- .env
27+
- .env

0 commit comments

Comments
 (0)