This repository has been archived by the owner on Jun 12, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rename everything that was sourcelist to sourcedive
- Loading branch information
Showing
9 changed files
with
24 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,15 +39,15 @@ Enter the database shell | |
|
||
Create the database | ||
|
||
CREATE DATABASE sourcelist; | ||
CREATE DATABASE sourcedive; | ||
|
||
Create the user | ||
|
||
CREATE USER sourcelistuser WITH PASSWORD 'password-here'; | ||
CREATE USER sourcediveuser WITH PASSWORD 'password-here'; | ||
|
||
Grant permissions | ||
|
||
GRANT ALL PRIVILEGES ON DATABASE sourcelist TO sourcelistuser; | ||
GRANT ALL PRIVILEGES ON DATABASE sourcedive TO sourcediveuser; | ||
|
||
Close the shell | ||
|
||
|
@@ -63,23 +63,23 @@ Generate ssh key | |
|
||
Make the virtual environment | ||
|
||
mkvirtualenv sourcelist | ||
mkvirtualenv sourcedive | ||
|
||
Clone the repo (or your fork) | ||
|
||
git clone [email protected]:greglinch/sourcelist.git | ||
git clone [email protected]:greglinch/sourcedive.git | ||
|
||
Change into the directory | ||
|
||
cd sourcelist | ||
cd sourcedive | ||
|
||
Install the requirements | ||
|
||
pip3 install -r requirements.txt | ||
|
||
Add the private settings file | ||
|
||
vim sourcelist/settings_private.py | ||
vim sourcedive/settings_private.py | ||
|
||
Paste the following (and fill all the `UPDATE` vars) | ||
|
||
|
@@ -188,15 +188,15 @@ Make directory for sites | |
|
||
Make the ini file | ||
|
||
sudo vim /etc/uwsgi/sites/sourcelist.ini | ||
sudo vim /etc/uwsgi/sites/sourcedive.ini | ||
|
||
Paste in these settings | ||
|
||
[uwsgi] | ||
|
||
logto = /var/log/uwsgi/error.log | ||
|
||
project = sourcelist | ||
project = sourcedive | ||
uid = ubuntu | ||
base = /home/%(uid) | ||
|
||
|
@@ -240,25 +240,25 @@ Install nginx | |
|
||
Create a config file | ||
|
||
sudo vim /etc/nginx/sites-available/sourcelist | ||
sudo vim /etc/nginx/sites-available/sourcedive | ||
|
||
Add this | ||
|
||
server { | ||
listen 80; | ||
server_name YOUR-DOMAIN.COM; | ||
access_log /var/log/nginx/sourcelist_access.log; | ||
error_log /var/log/nginx/sourcelist_error.log; | ||
access_log /var/log/nginx/sourcedive_access.log; | ||
error_log /var/log/nginx/sourcedive_error.log; | ||
|
||
location = /favicon.ico { access_log off; log_not_found off; } | ||
|
||
location /static/ { | ||
root /home/ubuntu/sourcelist/; | ||
root /home/ubuntu/sourcedive/; | ||
} | ||
|
||
location / { | ||
include uwsgi_params; | ||
uwsgi_pass unix:/run/uwsgi/sourcelist.sock; | ||
uwsgi_pass unix:/run/uwsgi/sourcedive.sock; | ||
} | ||
} | ||
|
||
|
@@ -268,7 +268,7 @@ Remove the symlink for the default site | |
|
||
Symlink the available site to an enable site | ||
|
||
sudo ln -s /etc/nginx/sites-available/sourcelist /etc/nginx/sites-enabled | ||
sudo ln -s /etc/nginx/sites-available/sourcedive /etc/nginx/sites-enabled | ||
|
||
Check the configuration | ||
|
||
|
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters