зеркало из https://github.com/mozilla/FlightDeck.git
Apache installation slightly modified
This commit is contained in:
Родитель
15624cf6c3
Коммит
63342a905d
6
INSTALL
6
INSTALL
|
@ -25,7 +25,6 @@ commands are specific to Ubuntu with Bash):
|
|||
|
||||
5. Create directory for Python environments
|
||||
# current directory: /path/to/projects/FlightDeck
|
||||
$ mkdir flightdeckenv
|
||||
$ virtualenv --no-site-packages flightdeckenv
|
||||
|
||||
6. Install via pip from requirements.txt and custom packages
|
||||
|
@ -65,7 +64,7 @@ commands are specific to Ubuntu with Bash):
|
|||
|
||||
10. Initiate database*
|
||||
$ ./scripts/syncdb.sh
|
||||
Choose your superadmin username and password
|
||||
# Choose your superadmin username and password
|
||||
|
||||
11. Run Server*
|
||||
$ ./scripts/runserver.sh
|
||||
|
@ -123,6 +122,9 @@ Configuring Apache
|
|||
# enable site
|
||||
$ sudo a2ensite flightdeck
|
||||
$ sudo /etc/init.d/apache2 reload
|
||||
# change permissions to database file (if using sqlite3)
|
||||
$ sudo chown :www-data ../FlightDeck dev.db
|
||||
$ chmod g+w ../FlightDeck dev.db
|
||||
# browse http://flightdeck.localhost
|
||||
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@ ADMINS = (
|
|||
)
|
||||
|
||||
DATABASE_ENGINE = 'sqlite3' # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
|
||||
DATABASE_NAME = '../dev.db' # Or path to database file if using sqlite3.
|
||||
DATABASE_NAME = os.path.join(FRAMEWORK_PATH,'dev.db') # Or path to database file if using sqlite3.
|
||||
DATABASE_USER = '' # Not used with sqlite3.
|
||||
DATABASE_PASSWORD = '' # Not used with sqlite3.
|
||||
DATABASE_HOST = '' # Set to empty string for localhost. Not used with sqlite3.
|
||||
|
|
|
@ -6,4 +6,4 @@ PYTHON_ENVIRONMENT=$PROJECT_NAME
|
|||
PYTHON_COMMAND=python
|
||||
# define directories
|
||||
PROJECT_DIR=`pwd`
|
||||
V_ENV=$PROJECT_DIR/pythonenv
|
||||
V_ENV=$PROJECT_DIR/flightdeckenv
|
||||
|
|
Загрузка…
Ссылка в новой задаче