You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1. Create two DigitalOcean servers in the same data center.
4
+
2. Create a floating IP @ DigitalOcean (you can find that in the 'Networking' tab).
5
+
3. Point the floating IP to the primary server.
6
+
7
+
# steps
8
+
9
+
1. Make sure you python3 is installed, as well as python3-requests `apt-get install python3 python3-requests`
10
+
11
+
2. Edit `floating-ip-droplet-id.py` and replace `YOU_DIGITAL_OCEAN_API_KEY` by your actual DigitalOcean API key.
12
+
13
+
3. Move `floating-ip-droplet-id.py` to /usr/local/bin/floating-ip-droplet-id then make it executable `chmod +x /usr/local/bin/floating-ip-droplet-id`
14
+
15
+
4. Edit `do-assign-floating-ip.py` and replace `YOU_DIGITAL_OCEAN_API_KEY` by your actual DigitalOcean API key.
16
+
17
+
5. Move `do-assign-floating-ip.py` to /usr/local/bin/do-assign-floating-ip then make it executable `chmod +x /usr/local/bin/do-assign-floating-ip`
18
+
19
+
# syncing both servers
20
+
21
+
- You can either deploy your code via git to both servers (can be easily done using Laravel Forge).
22
+
- You can setup file syncing between the two servers using rsync, both servers first need to be able to use a public/private key authentication to communicate with each other.
0 commit comments