DB: MongoDB Community Server
GUI: Compass
mongo
show dbs
use myfirstdb
Install the Heroku Command Line Interface (CLI)
Use the heroku login
command to log in to the Heroku CLI
Check if you have PHP(php -v
), Composer(composer -V
), & Git(git --version
) installed
Clone your Package
git clone https://github.com/heroku/php-getting-started.git
cd php-getting-started
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3"
crossorigin="anonymous">
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.bundle.min.js"
integrity="sha384-ka7Sk0Gln4gmtz2MlQnikT1wXgYsOg+OMhuP+IlRH9sENBO0LRn5q+8nbTov4+1p"
crossorigin="anonymous"></script>
In web application, we often need to provide file downloads. For small files, there is no problems since it needs a short time to download. For large files, it’s useful to allow downloads to be resumed. Doing so is more involved, but it’s really worth doing, especially if you serve large files or video/audio. We can do a resumable downloads with the Http headers of Accept-Ranges, Content-Range, Range.
Accept-Ranges: bytes
A simple 2-step tutorial how to extract a file with the .wpress extension on your computer:
Make sure that you have Node.js installed in your computer:
node --version
In your terminal navigate to the location where the .wpress file is downloaded (e.g. ~/Downloads) and run the following command:
npx wpress-extract migration.wpress