From ba8c0eb0358c4ddacfde63ba0290b1f5397cb590 Mon Sep 17 00:00:00 2001 From: hjone72 Date: Wed, 24 Jul 2019 14:04:21 +1000 Subject: [PATCH 1/4] Fix for subscription fails on getDisplayName() (#2909) As per https://github.com/invoiceninja/invoiceninja/issues/2908 --- app/Listeners/SubscriptionListener.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Listeners/SubscriptionListener.php b/app/Listeners/SubscriptionListener.php index e494af770484..8481f8296ff7 100644 --- a/app/Listeners/SubscriptionListener.php +++ b/app/Listeners/SubscriptionListener.php @@ -263,7 +263,7 @@ class SubscriptionListener $jsonData = $manager->createData($resource)->toArray(); // For legacy Zapier support - if (isset($jsonData['client_id'])) { + if (isset($jsonData['client_id']) && $jsonData['client_id'] != 0) { $jsonData['client_name'] = $entity->client->getDisplayName(); } From 4ee051282760e7f20afdf5f0d2840ce37382fda5 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Sat, 3 Aug 2019 17:10:37 +1000 Subject: [PATCH 2/4] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 18baf74a98d4..80c1a6ee5165 100644 --- a/README.md +++ b/README.md @@ -37,6 +37,7 @@ The self-host zip includes all third party libraries whereas downloading the cod * [Docker File](https://hub.docker.com/r/invoiceninja/invoiceninja/) * [Cloudron](https://cloudron.io/store/com.invoiceninja.cloudronapp.html) * [Softaculous](https://www.softaculous.com/apps/ecommerce/Invoice_Ninja) +* [Lando](https://github.com/invoiceninja/invoiceninja/issues/2880) ## Recommended Providers * [Stripe](https://stripe.com/) From caa3a34a4ac6b5e6e1ef21b23d2f7d339a1a0a65 Mon Sep 17 00:00:00 2001 From: Joshua Dwire Date: Sat, 10 Aug 2019 10:48:45 -0400 Subject: [PATCH 3/4] Add Digital Ocean image docs --- docs/digital_ocean.rst | 37 +++++++++++++++++++++++++++++++++++++ docs/index.rst | 1 + 2 files changed, 38 insertions(+) create mode 100644 docs/digital_ocean.rst diff --git a/docs/digital_ocean.rst b/docs/digital_ocean.rst new file mode 100644 index 000000000000..4a74489ae190 --- /dev/null +++ b/docs/digital_ocean.rst @@ -0,0 +1,37 @@ +Digital Ocean +=================== + +Invoice Ninja has created a Digital Ocean Marketplace image with Invoice Ninja pre-installed. + +To use this image, when creating a Droplet, choose **Marketplace** under the **Choose an image section**, and select the **Invoice Ninja on Ubuntu 18.04** image. + +This image includes Nginx, PHP 7.3, MySQL, Certbot, and Postfix, and it will automatically download the latest version of Invoice Ninja on the first boot. An auto-update script is also included to keep your Invoice Ninja installation up to date. + +After the server boots and installation has finished, you can visit your server's URL in a web browser to complete the Invoice Ninja setup process. The **Database Connection** section is pre-filled with connection information for the database and user that was created for you. We recommend installing an HTTPS certificate (see below) and setting the application URL, as well as configuring an external mail server before continuing. + +HTTPS Certificate +"""""""""""""""""""""""" + +Once the server has been created, you can connect to the server via SSH. Run ``sudo certbot -d `` to generate and install an HTTPS certificate using Let's Encrypt. + +The image includes a cron job to automatically renew any certificates installed using Certbot. + +Mail +"""""""""""""""""""""""" + +The image includes a Postfix server; however without additional configuration, your emails will likely be rejected by most email providers. + +See the following guide for more information: https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-postfix-on-ubuntu-18-04 + +.. Note:: Due to the difficulties of configuring and maintaining a mail server for high deliverability rates, we recommend using an external email service such as Mailgun. + +FAQ: +"""" + +Q: My emails are not being delivered. + +A: Most likely you have not configured a mail service and have set up the built in Postfix server. We creating a Mailgun account and entering your credentials under Settings -> System Settings -> Email Settings. + +Q: Do I need to create a database on the server? + +A: No, this is not required. The server automatically creates a MySQL database and user on the first boot. diff --git a/docs/index.rst b/docs/index.rst index bac7860846c9..0f4a6f6f1430 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -47,6 +47,7 @@ Want to find out everything there is to know about how to use your Invoice Ninja install configure update + digital_ocean mobile_apps api developer_guide From 3cc9a580e2f41d718665fccf013981472a66719c Mon Sep 17 00:00:00 2001 From: Joshua Dwire Date: Sat, 10 Aug 2019 22:11:03 -0400 Subject: [PATCH 4/4] Update PHP version number in Digital Ocean docs (#2927) --- docs/digital_ocean.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/digital_ocean.rst b/docs/digital_ocean.rst index 4a74489ae190..01ba9bc24d63 100644 --- a/docs/digital_ocean.rst +++ b/docs/digital_ocean.rst @@ -5,7 +5,7 @@ Invoice Ninja has created a Digital Ocean Marketplace image with Invoice Ninja p To use this image, when creating a Droplet, choose **Marketplace** under the **Choose an image section**, and select the **Invoice Ninja on Ubuntu 18.04** image. -This image includes Nginx, PHP 7.3, MySQL, Certbot, and Postfix, and it will automatically download the latest version of Invoice Ninja on the first boot. An auto-update script is also included to keep your Invoice Ninja installation up to date. +This image includes Nginx, PHP 7.2, MySQL, Certbot, and Postfix, and it will automatically download the latest version of Invoice Ninja on the first boot. An auto-update script is also included to keep your Invoice Ninja installation up to date. After the server boots and installation has finished, you can visit your server's URL in a web browser to complete the Invoice Ninja setup process. The **Database Connection** section is pre-filled with connection information for the database and user that was created for you. We recommend installing an HTTPS certificate (see below) and setting the application URL, as well as configuring an external mail server before continuing.