Update deployment instructions
@@ -53,28 +53,32 @@ mkdir instance
|
||||
mkdir myriad/static/icons
|
||||
mkdir myriad/static/blinkies
|
||||
mkdir myriad/static/stamps
|
||||
mkdir myriad/static/misc
|
||||
mkdir myriad/static/tmp
|
||||
```
|
||||
|
||||
Copy this default configuration:
|
||||
|
||||
```
|
||||
REGISTRATION = True # Make sure to disable in production after setting up first user!!!
|
||||
ALLOWED_EXTENSIONS = {'png', 'jpg', 'jpeg', 'gif'}
|
||||
ICON_UPLOAD_FOLDER = 'myriad/static/icons'
|
||||
BLINKIES_UPLOAD_FOLDER = 'myriad/static/blinkies'
|
||||
STAMPS_UPLOAD_FOLDER = 'myriad/static/stamps'
|
||||
THEMES_FOLDER = 'myriad/static/themes'
|
||||
TMP_FOLDER = 'myriad/static/tmp'
|
||||
```
|
||||
|
||||
Create the config file:
|
||||
|
||||
```
|
||||
sudo nano instance/config.py
|
||||
```
|
||||
|
||||
Then paste! Now save and exit.
|
||||
Copy and paste this default configuration:
|
||||
|
||||
```
|
||||
REGISTRATION = True # Make sure to disable in production
|
||||
ICON_UPLOAD_FOLDER = 'myriad/static/icons' # where member icons will be stored
|
||||
BLINKIES_UPLOAD_FOLDER = 'myriad/static/blinkies' # where blinkies will be stored
|
||||
STAMPS_UPLOAD_FOLDER = 'myriad/static/stamps' # where stamps will be stored
|
||||
MISC_UPLOAD_FOLDER = 'myriad/static/misc' # where misc image uploads will be stored
|
||||
THEMES_FOLDER = 'myriad/static/themes' # all the theme css files are here
|
||||
TMP_FOLDER = 'myriad/static/tmp' # required for exports
|
||||
SYSTEM_NAME = 'Myriad' # will be shown in the title bar
|
||||
PAGES_NAME = 'Read More...' # will be shown in the nav bar if using custom pages
|
||||
SECRET_KEY = 'dev' # CHANGE THIS - see wiki for details
|
||||
|
||||
```
|
||||
Now save and exit. (Ctrl+X and confirm the save)
|
||||
|
||||
Generate a secret key, highlight it, and copy to the clipboard
|
||||
|
||||
@@ -82,7 +86,7 @@ Generate a secret key, highlight it, and copy to the clipboard
|
||||
python -c 'import secrets; print(secrets.token_hex())'
|
||||
```
|
||||
|
||||
Go back to the config file, and create a new line:
|
||||
Go back to the config file, and replace 'dev' in the SECRET_KEY:
|
||||
|
||||
```
|
||||
sudo nano instance/config.py
|
||||
|
||||
Reference in New Issue
Block a user