Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
vms:invoiceninja [2015/09/04 02:18]
admin [Create a New Nginx Server Block]
vms:invoiceninja [2015/09/04 02:56]
admin [Backup the Database]
Line 207: Line 207:
 server { server {
     listen ​     443 default;     listen ​     443 default;
-    server_name ​<ininja>;+    server_name ininja;
  
     ssl on;     ssl on;
Line 238: Line 238:
     location ~ \.php$ {     location ~ \.php$ {
         fastcgi_split_path_info ^(.+\.php)(/​.+)$;​         fastcgi_split_path_info ^(.+\.php)(/​.+)$;​
-        fastcgi_pass unix:/​var/​run/​php5-fpm-your_user.sock;+        fastcgi_pass unix:/​var/​run/​php5-fpm-ininja.sock;
         fastcgi_index index.php;         fastcgi_index index.php;
         include fastcgi_params;​         include fastcgi_params;​
Line 254: Line 254:
 server { server {
     listen ​     80;     listen ​     80;
-    server_name ​ininja;+    server_name ​172.20.20.10;
  
     add_header Strict-Transport-Security max-age=2592000;​     add_header Strict-Transport-Security max-age=2592000;​
Line 261: Line 261:
 </​code>​ </​code>​
  
-You'll need to adapt the "​ininja"​ values to your configuration...+You'll need to adapt the "​ininja"​ values to your configuration... Also we've used the IP as server name as we're using a VM, you'd need to put the FQDN of your server in case your are deploying on a production machine.
  
 === Activate the server block === === Activate the server block ===
Line 271: Line 271:
 </​code>​ </​code>​
  
 +----
 +===== Start Using Invoice Ninja =====
 +----
 +
 +Directing a web browser to your VM's IP should now display the **Invoice Ninja Setup** page, enjoy !
 +
 +----
 +==== Backup the Database ====
 +
 +For development purposes it might sometimes be usefull to make a backup of the database at a certain state. To do that, use the ''​%%mysqldump%%''​ command:
 +
 +**backup**:
 +<​code>​
 +> mysqldump ininja > /​path/​to/​ininja-state.sql
 +</​code>​
 +
 +**restore**:​
 +<​code>​
 +> mysql ininja < /​path/​to/​ininja-state.sql
 +</​code>​