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
Copy file name to clipboardExpand all lines: docs/installation/digital-ocean.md
+3-3
Original file line number
Diff line number
Diff line change
@@ -47,7 +47,7 @@ sudo systemctl status docker
47
47
* Next step is to install Docker-Compose. Following the [DigitalOcean guide](https://www.digitalocean.com/community/tutorials/how-to-install-and-use-docker-compose-on-ubuntu-14-04), run the following commands in the ssh shell to install compose.
48
48
49
49
```bash
50
-
sudo apt-get -y install python-pip
50
+
sudo apt-get -y install python3-pip
51
51
sudo pip install docker-compose
52
52
```
53
53
@@ -95,9 +95,9 @@ docker-compose run web /bin/bash
95
95
* When bash opens, run the following commands and exit.
96
96
97
97
```bash
98
-
python create_db.py
98
+
python3 create_db.py
99
99
# ^^ write super_admin email and password when asked
100
-
python manage.py db stamp head
100
+
python3 manage.py db stamp head
101
101
```
102
102
103
103
* That's it. Visit the `$IP` (example 104.236.228.132) to view the open event server. You can close the 2nd terminal window if you wish.
Copy file name to clipboardExpand all lines: docs/installation/docker.md
+3-3
Original file line number
Diff line number
Diff line change
@@ -43,9 +43,9 @@ create database opev;
43
43
* Now the database is created, so let's create the tables. Open the application's shell by `docker-compose run web /bin/bash`. Then write the following commands.
44
44
45
45
```bash
46
-
python create_db.py
46
+
python3 create_db.py
47
47
# ^^ write super_admin email and password when asked
48
-
python manage.py db stamp head
48
+
python3 manage.py db stamp head
49
49
```
50
50
51
51
* Close the application's shell by `exit` command.
@@ -62,7 +62,7 @@ python manage.py db stamp head
62
62
* Then open a new terminal window in same directory and run the following.
63
63
64
64
```bash
65
-
docker-compose run web python manage.py db upgrade
65
+
docker-compose run web python3 manage.py db upgrade
66
66
```
67
67
68
68
* That should be all. Open `localhost` in web browser to view the updated open-event-server.
The development server is the one that Flask ships with. It's based on Werkzeug and does not support WebSockets. If you try to run it, you'll get a RunTime error, something like: `You need to use the eventlet server. `. To test real-time notifications, you must use the Gunicorn web server with eventlet worker class.
150
150
151
-
If you've installed development requirements, you should have both `gunicorn` and `eventlet` installed. To run application on port 5000, execute the following instead of `python manage.py runserver`:
151
+
If you've installed development requirements, you should have both `gunicorn` and `eventlet` installed. To run application on port 5000, execute the following instead of `python3 manage.py runserver`:
0 commit comments