Browse Source

Migration export / import fix

Andrea Pollastri 5 years ago
parent
commit
b0b9a5aaa3
2 changed files with 6 additions and 4 deletions
  1. 2 2
      README.md
  2. 4 2
      app/Http/Controllers/SettingsController.php

+ 2 - 2
README.md

@@ -2,7 +2,7 @@
 ![](http://cipi.sh/home/assets/images/home.gif)
 ![](http://cipi.sh/home/assets/images/home.gif)
 
 
 ## About
 ## About
-Cipi is a Laravel based cloud server control panel that supports Digital Ocean, AWS, Vultr, Google Cloud, Linode, Azure and other VPS. It comes with nginx, Mysql, multi PHP-FPM versions, multi users, Supervisor, Composer, npm, free Let's Encrypt certificates, Git deployment, backups, postfix, phpmyadmin, fail2ban and with a simple graphical interface useful to manage Laravel, Codeigniter, Symphony, WordPress or other PHP applications. With Cipi you don’t need to be a Sys Admin to deploy and manage websites and PHP applications powered by cloud VPS.
+Cipi is a Laravel based cloud server control panel that supports Digital Ocean, AWS, Vultr, Google Cloud, Linode, Azure and other VPS. It comes with nginx, Mysql, multi PHP-FPM versions, multi users, Supervisor, Composer, npm, free Let's Encrypt certificates, Git deployment, backups, postfix, phpmyadmin, fail2ban, Redis, API, data migration and with a simple graphical interface useful to manage Laravel, Codeigniter, Symphony, WordPress or other PHP applications. With Cipi you don’t need to be a Sys Admin to deploy and manage websites and PHP applications powered by cloud VPS.
 
 
 ## Features
 ## Features
 - Easy install: setup one or more servers with a click in less than ten minutes without be a Linux expert.
 - Easy install: setup one or more servers with a click in less than ten minutes without be a Linux expert.
@@ -75,7 +75,7 @@ Cipi was developed with:
 You can follow Cipi Project RoadMap here: https://github.com/andreapollastri/cipi/projects/
 You can follow Cipi Project RoadMap here: https://github.com/andreapollastri/cipi/projects/
 
 
 ## Contributing
 ## Contributing
-Thank you for considering contributing to the Cipi Project (feedbacks, ideas, code, promo, money, beers) :)
+Thank you for considering contributing to the Cipi Project (pr, issues, feedbacks, ideas, code, promo, money, beers) :)
 
 
 ## Problem with Cipi?
 ## Problem with Cipi?
 Please open an issue or write and e-mail to andrea@pollastri.dev.
 Please open an issue or write and e-mail to andrea@pollastri.dev.

+ 4 - 2
app/Http/Controllers/SettingsController.php

@@ -72,8 +72,9 @@ class SettingsController extends Controller
         $servers = Server::all();
         $servers = Server::all();
         $applications = Application::all();
         $applications = Application::all();
         $aliases = Alias::all();
         $aliases = Alias::all();
+        $data = '';
         foreach($servers as $server) {
         foreach($servers as $server) {
-            $data = $server->id.','.$server->name.','.$server->provider.','.$server->location.','.$server->ip.','.$server->port.','.$server->username.','.$server->password.','.$server->dbroot.','.$server->status.','.$server->servercode.'###CIPISERVER###';
+            $data .= $server->id.','.$server->name.','.$server->provider.','.$server->location.','.$server->ip.','.$server->port.','.$server->username.','.$server->password.','.$server->dbroot.','.$server->status.','.$server->servercode.'###CIPISERVER###';
         }
         }
         $data .= '###CIPIBR###';
         $data .= '###CIPIBR###';
         foreach($applications as $application) {
         foreach($applications as $application) {
@@ -129,7 +130,8 @@ class SettingsController extends Controller
                     'username'  => $server[6],
                     'username'  => $server[6],
                     'password'  => $server[7],
                     'password'  => $server[7],
                     'dbroot'    => $server[8],
                     'dbroot'    => $server[8],
-                    'servercode'=> $server[9]
+                    'status'    => $server[9],
+                    'servercode'=> $server[10]
                 ]);
                 ]);
             }
             }
         }
         }