WEBVTT

1
00:00:03.416 --> 00:00:10.888
This is Harbour Bikes, a real bike rental site. It runs on a small rented server, a VPS.

2
00:00:11.288 --> 00:00:20.489
Its bookings and bikes live in a Postgres database on that server. We will move all of it without taking the site down.

3
00:00:20.999 --> 00:00:26.879
In my-app.engineer, open your workspace and go to Setup. Choose Move something you run.

4
00:00:27.029 --> 00:00:30.429
Pick the card for apps on a VPS or server.

5
00:00:30.579 --> 00:00:36.742
It gives you one command. You run it on the server, over SSH.

6
00:00:37.142 --> 00:00:49.594
Here it runs on the real server. It installs the Observer, a small program that only looks. It has no AI and changes nothing.

7
00:00:49.994 --> 00:00:53.234
When it is done, it prints a private link to open.

8
00:00:57.468 --> 00:01:01.188
Open that link, and your server draws itself in 3D.

9
00:01:01.338 --> 00:01:06.658
Each shape is something that runs there: the web app, the database and their storage.

10
00:01:06.808 --> 00:01:14.773
This panel says what the Observer may do. It only reads, it has no AI, and your data stays on the machine.

11
00:01:15.173 --> 00:01:24.438
Back in the platform, make a pairing code. It works once, for fifteen minutes.

12
00:01:24.838 --> 00:01:39.849
Type the code into the Observer. Pairing sends a list of your apps, never passwords or data.

13
00:01:40.249 --> 00:02:05.075
One more click lets this machine carry out the steps you approve. A restart makes it read only again.

14
00:02:05.475 --> 00:02:11.983
The platform now sees your server, and everything it found there.

15
00:02:12.485 --> 00:02:17.221
Open the migration plan.

16
00:02:17.621 --> 00:02:25.172
It shows what moves: the web app, its database and its uploaded files, kept together as one group.

17
00:02:25.572 --> 00:02:31.570
And what stays behind, with the reason for each.

18
00:02:31.970 --> 00:02:34.890
Choose where it goes: your private workspace.

19
00:02:35.040 --> 00:02:43.163
Type the address the shop keeps. Visitors use this one address the whole time.

20
00:02:43.563 --> 00:02:49.921
Approve the plan, and the move starts.

21
00:02:50.424 --> 00:02:54.643
Now it works through the steps on its own. We cut out the waiting.

22
00:02:55.043 --> 00:02:59.932
First the database is copied and loaded into your workspace.

23
00:03:00.332 --> 00:03:04.771
Then the uploaded files.

24
00:03:05.171 --> 00:03:10.570
The app starts in your workspace. It is sealed, so it cannot reach the outside world yet.

25
00:03:10.970 --> 00:03:15.868
Then it tests the copy itself. It answers, and it holds the data.

26
00:03:16.268 --> 00:03:24.868
Now the cutover, in four careful steps. First your address goes through the platform, which hands every visit straight back to the old server.

27
00:03:25.018 --> 00:03:32.658
Then shadow. Real visits are replayed on the copy and its answers are thrown away. Visitors still get the old server.

28
00:03:32.808 --> 00:03:41.648
Then canary. A small share of real visitors is served by the copy, then more, and every step is watched. Any trouble rolls it back on its own.

29
00:03:41.798 --> 00:03:47.128
Then the flip. Your workspace now serves the shop.

30
00:03:47.528 --> 00:03:53.106
Shutting down the original is the one step that waits for you. Nothing that big happens on its own.

31
00:03:53.609 --> 00:04:00.782
Open the site. At the bottom you can see it is served from your workspace now.

32
00:04:01.182 --> 00:04:05.818
The same thirty seven bookings came along.

33
00:04:06.218 --> 00:04:12.872
Book a bike, and the new booking is saved in its new home.

34
00:04:13.272 --> 00:04:19.888
The old server still runs, untouched. It is your way back until you retire it.
