|
|
@@ -2,11 +2,13 @@
|
|
|
|
|
|
## Summary
|
|
|
|
|
|
+https://custom.ardupilot.org
|
|
|
This is a website that generates a downloadable custom ArduPilot firmware, based on user selection.
|
|
|
|
|
|
## For developers
|
|
|
|
|
|
-This website uses the flask library. The ardupilot directory must be in the same directory as the CustomBuild directory.
|
|
|
+This website uses the Flask library. Flask must be installed before use.
|
|
|
+Directories: `ardupilot` must be within `base`, which must be in the same directory as `CustomBuild`.
|
|
|
|
|
|
To run:
|
|
|
|
|
|
@@ -14,21 +16,21 @@ To run:
|
|
|
./app.py
|
|
|
```
|
|
|
|
|
|
-### For Apache web server on Ubuntu with wsgi
|
|
|
+### For Apache web server on Ubuntu with WSGI
|
|
|
|
|
|
* Install mod_wsgi for python 3:
|
|
|
```
|
|
|
sudo apt-get install libapache2-mod-wsgi-py3 python-dev
|
|
|
```
|
|
|
* In `app.wsgi`, specify the app directory (`.../CustomBuild/`).
|
|
|
-* Copy the config file to `/etc/apache2/sites-available/` and specify the correct directory, user and group.
|
|
|
+* Copy the config file to `/etc/apache2/sites-available/` and specify the correct directory.
|
|
|
* Enable the file:
|
|
|
```
|
|
|
sudo a2ensite CustomBuild.conf
|
|
|
```
|
|
|
-* Open `envvars`, and specify the user and group.
|
|
|
+* To restart Apache:
|
|
|
```
|
|
|
-sudo vim /etc/apache/envvars
|
|
|
+sudo apache2ctl graceful
|
|
|
```
|
|
|
* To stop Apache:
|
|
|
```
|
|
|
@@ -38,22 +40,4 @@ sudo apache2ctl stop
|
|
|
```
|
|
|
sudo apache2ctl start
|
|
|
```
|
|
|
-Webpage: 127.0.0.1/CustomBuild/
|
|
|
-
|
|
|
-### Without wsgi
|
|
|
-
|
|
|
-Insert the CustomBuild directory location for DocumentRoot and Directory below.
|
|
|
-```
|
|
|
-DocumentRoot "CustomBuild directory location"
|
|
|
-<Directory CustomBuild directory location>
|
|
|
- Options Indexes FollowSymLinks MultiViews
|
|
|
- AllowOverride None
|
|
|
- Order allow,deny
|
|
|
- allow from all
|
|
|
-Require all granted
|
|
|
-</Directory>
|
|
|
-```
|
|
|
-To run the server:
|
|
|
-```
|
|
|
-/usr/local/opt/httpd/bin/httpd -D FOREGROUND
|
|
|
-```
|
|
|
+Webpage: 127.0.0.1
|