README.md: deployment guide (small revision).

pull/3/head
Lan Hui 2021-07-21 21:45:23 +08:00
parent 2b78896c9b
commit a7770dc7d4
1 changed files with 4 additions and 4 deletions

View File

@ -28,7 +28,7 @@ LRR uses a database called `lrr`. I need to export existing `lrr` to a plain te
The command for exporting the database is `mysqldump -u mnc -p lrr > lrr_database_dump.txt`.
The command for importing is `mysql -u mnc -p lrr < lrr_database_dump.txt`. Read [How to Import and Export MySQL Databases in Linux](https://phoenixnap.com/kb/import-and-export-mysql-database) for more detail.
LRR also needs to store assignment submissions. We store them in a folder called `../../lrr_submission`. Note that `lrr_submission` is two levels above the project folder (where many PHP files locate). I copied this folder from the existing one. I think it is also OK if you create an empty folder.
LRR also needs to store assignment submissions. We store them in a folder called `../../lrr_submission`. Note that `lrr_submission` is two levels above the project folder (where many PHP files reside). I copied this folder from the existing one. I think it is also OK if you create an empty folder.
We need to set a proper owner and accessibility for `lrr_submission` using the following two commands:
`sudo chown -R www-data:www-data lrr_submission` and `sudo chmod -R g+rw lrr_submission`. Also, remember to change the user name and password in `lrr_submission//KeepItSafe.txt` for the database connection.
@ -46,7 +46,7 @@ Rename LRR to lrr. Change the owner of lrr: `sudo chown -R $USER:$USER /var/www
</VirtualHost>
Enable the site lrr: `sudo a2ensite lrr`. Restart the apache server: `sudo systemctl reload apache2`.
Visit the LRR application by entering this URL: http://121.4.94.30/.
Visit the LRR application by entering this URL in a web browser: http://121.4.94.30/.
## Enock's steps