Procházet zdrojové kódy

Merge pull request #1 from simonecosci/master

Added Installation instructions
Andrea Pollastri před 6 roky
rodič
revize
2993e29c98
2 změnil soubory, kde provedl 53 přidání a 0 odebrání
  1. 51 0
      README.md
  2. 2 0
      app/Providers/AppServiceProvider.php

+ 51 - 0
README.md

@@ -3,3 +3,54 @@
 Install PHP 7.3, MySql 5.7, phpmyadmin, Let's Encrypt, fail2ban, npm and other with a click.
 
 More info on [https://cipi.sh](https://cipi.sh)
+
+## Installation
+
+###There are two ways to install Cipi.
+
+####Autoinstall Script
+The first way is run an autoinstall script on a Ubuntu 18.04 LTS based VPS:
+```
+wget -O - https://cipi.sh/go.sh | bash
+```
+After installation, you can change your personal data and password in the profile section.
+You can configure a SMTP provider into /cipi/.env file.
+
+####Laravel Installation
+The second way is install Cipi Laravel Project into an hosting:
+
+Cloning the git
+```
+git clone https://github.com/andreapollastri/cipi.git <install-directory>
+cd <install-directory>
+composer install
+```
+
+## Database
+Creata a new database
+```
+mysql -uroot -p
+mysql> create database yourDatabaseName;
+mysql> quit;
+```
+
+Then `cp .env.example .env` and update your database creds.
+```
+DB_CONNECTION=mysql
+DB_HOST=127.0.0.1
+DB_PORT=3306
+DB_DATABASE=yourDatabaseName
+DB_USERNAME=root
+DB_PASSWORD=root
+```
+(Into .env file you can also config an SMTP provider and customize initial username and password)
+
+
+At the end run this commands:
+```
+php artisan migrate:fresh --seed
+php artisan key:generate
+php artisan storage:link
+```
+
+Enjoy Cipi :)

+ 2 - 0
app/Providers/AppServiceProvider.php

@@ -3,6 +3,7 @@
 namespace App\Providers;
 
 use Illuminate\Support\ServiceProvider;
+use Illuminate\Support\Facades\Schema;
 
 class AppServiceProvider extends ServiceProvider
 {
@@ -24,5 +25,6 @@ class AppServiceProvider extends ServiceProvider
     public function boot()
     {
         //
+        Schema::defaultStringLength(191);
     }
 }