How can I recreate the storage directory after a series of unfortunate f-k ups.
I had some hiccups upgrading Invoice Ninja recently and I saw on the forum I could just unzip the upgrade file and replace the current contents. I missed the part about using the sourcecode.zip file instead of the invoiceninja.zip file and overwrote my .env file.
Then I blew the whole thing away, unzipped the invoiceninja.zip file again and restored the .env file from a backup. That seemed to work so I called it a night until a week later when I tried to make an invoice and found I couldn’t. I got a “500: file_get_contents(https://www.invoiceninja.com/ninja/public/storage/mMJbivKYO1k4muCQ0E0jbV2EmtCSxMGXzzlo7JqxcHnWcPhPQ5TrRGUew9prhZ2z/WMtGxZZE8dlzGy9Lsv2BkQZEIWtyUSo0DE04WuFc.png): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found)” error.
That’s when I found out I need to keep the .env file and the storage directory safe. Backups have since moved on so I can’t get the storage directory from there.
How can I recreate the files in it to allow me to generate invoices again?