Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/cydrobolt/polr.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChaoyi Zha <summermontreal@gmail.com>2017-05-06 01:43:18 +0300
committerChaoyi Zha <summermontreal@gmail.com>2017-05-06 01:43:18 +0300
commit772a4f3c11536d45c9283922d29092795ebc65fa (patch)
treea56a95991560d523222a1c5f3f5f3d664b993333
parent0feda01580ad276cfdc1ee3e4c072d0af93ef977 (diff)
parent3e3f416bd0de68b86ad3b9df80f65999220fb98e (diff)
Merge branch 'master' into feature/edit_long_link
-rw-r--r--app/Http/Controllers/AdminController.php1
-rw-r--r--docs/user-guide/installation.md24
2 files changed, 11 insertions, 14 deletions
diff --git a/app/Http/Controllers/AdminController.php b/app/Http/Controllers/AdminController.php
index 1902bab..d27a982 100644
--- a/app/Http/Controllers/AdminController.php
+++ b/app/Http/Controllers/AdminController.php
@@ -1,7 +1,6 @@
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
-use Yajra\Datatables\Facades\Datatables;
use Hash;
use App\Models\Link;
diff --git a/docs/user-guide/installation.md b/docs/user-guide/installation.md
index b31e14e..4103fb8 100644
--- a/docs/user-guide/installation.md
+++ b/docs/user-guide/installation.md
@@ -169,7 +169,7 @@ server {
To run Polr on another HTTP server or on shared hosting, you will need to set the home
directory to `/PATH_TO_POLR/public`, not the root Polr folder.
-## Create necessary databases
+## Creating the database
### MySQL
@@ -188,7 +188,7 @@ Additionally, if you wish to create a new user with access to solely this databa
You may also use SQLite in place of MySQL for Polr. However, SQLite is not recommended for use with Polr.
-## Option 1: Run automatic setup script
+## Option 1: Run the automatic setup script
Once your server is properly set up, you will need to configure Polr and
enable it to access the database.
@@ -198,28 +198,26 @@ Copy the `.env.setup` file to `.env` in your website's root directory.
`$ cp .env.setup .env`
Then, head over to your new Polr instance, at the path `/setup/` to configure
-your instance with the correct information.
+your instance with the correct information. (e.g example.com/setup)
-This will automatically create your databases and write a new configuration file to disk, `.env`. You may make changes later on by editing this file.
+This will automatically create the necessary tables and write a new configuration file to disk, `.env`. You may make changes to your configuration later by editing this file.
-You should be set. You may go back to your Polr homepage and log in to perform
+Once the setup script is completed, Polr is ready to go. You may go back to your Polr homepage and log in to perform
any other actions.
-## Option 2: Write configuration and database manually
+## Option 2: Write the configuration file and create the tables manually
-If you wish to configure and initialize Polr manually, you may do so using
-your command line.
+If you wish to configure and initialize Polr manually, you may do so through command line, although it is not recommended.
-Rename copy `resources/views/env.blade.php` to `.env` at the root directory
+Copy `resources/views/env.blade.php` to `.env` at the root directory
and update the values appropriately. Do not leave any curly braces in your new `.env`. You may leave
-certain sections empty to use the defaults.
+certain sections blank or commented-out to use the defaults.
-You may then run the following `artisan` command to populate the database.
-You will also need to insert a admin user into the `users` table through `mysql` or a graphical `sql` interface.
+You may then run the following `artisan` command to create the necessary tables:
```bash
php artisan migrate --force
php artisan geoip:update
```
-This should create the necessary databases.
+You will also need to insert a admin user into the `users` table through `mysql` or a graphical SQL interface.