Open port 443 on container, with a docker-compose file just add :
ports:
- 443:443
Add virtualhost config :
Listen 443 https
<?php | |
if(php_sapi_name() != 'cli') | |
{ | |
die('only via cli'); | |
} | |
require 'app/Mage.php'; | |
umask(0); |
Open port 443 on container, with a docker-compose file just add :
ports:
- 443:443
Add virtualhost config :
Listen 443 https
The API we are creating in this gist will follow these rules :
password
Grant Type only (no need for Authorization pages and such).v1.api.example.com
)The API will be written in PHP with the Symfony 3 framework. The following SF2 bundles are used :
#!/bin/bash | |
#### | |
# Split MySQL dump SQL file into one file per table | |
# based on http://blog.tty.nl/2011/12/28/splitting-a-database-dump | |
#### | |
if [ $# -lt 1 ] ; then | |
echo "USAGE $0 DUMP_FILE [TABLE]" | |
exit |