Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
vms:invoiceninja [2015/09/04 02:18] admin [Create a New Nginx Server Block] |
vms:invoiceninja [2015/09/04 02:58] (current) 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 -uininja -p ininja > /path/to/ininja-state.sql | ||
+ | Enter password: | ||
+ | </code> | ||
+ | |||
+ | **restore**: | ||
+ | <code> | ||
+ | > mysql -uininja -p ininja < /path/to/ininja-state.sql | ||
+ | Enter password: | ||
+ | </code> |