Skip to content

Instantly share code, notes, and snippets.

View ducxinh's full-sized avatar

Bill Nguyen ducxinh

View GitHub Profile
<?php
$file = public_path('signa/sample/new.pdf');
$filename = 'new.pdf';
header('Content-type: application/pdf');
header('Content-Disposition: inline; filename="' . $filename . '"');
header('Content-Transfer-Encoding: binary');
header('Content-Length: ' . filesize($file));
header('Accept-Ranges: bytes');
@readfile($file);

Title

<Additional information about your API call. Try to use verbs that match both request type (fetching vs modifying) and plurality (one vs multiple).>

  • URL

    <The URL Structure (path only, no root url)>

  • Method:

## Installing Supervisor on AWS Elastic Beanstalk manually.
This gist may help you to install supervisor Manually on AWS Beanstalk host. I was enable to install and configure referring supervisor docs. Here are the steps by which I was able to use supervisor on my project.
> Note: I have performed this steps on Laravel project and my instance was Debian powered. You can change according to your requirement.
-----------------
* Check **python with easy_install** is installed
* Install **supervisor** > `$ easy_install supervisor`
* Create directory for supervisor workers > `mkdir /etc/supervisor/conf.d/`