First time Heroku user!
My php
api has a authentication method for an iOS
app:
public function authenticateAppKey() {
if (!isset($_SERVER['HTTP_APP_KEY'])) {
error('App Key Not Supplied');
exit;
} else if ($_SERVER['HTTP_APP_KEY'] != self::$api_key) {
error('App Key Incorrect');
exit;
}
}
It is always returning App Key Not Supplied
This has always worked up until I have switched to Heroku, wondering if I have missed a setting during the Heroku setup.
These are my build packs:
I also have https://github.com/travstoll/heroku-buildpack-php installed on the server
Deployment Log if helpful:
-----> Using set buildpack heroku/php
-----> PHP app detected
-----> Bootstrapping...
-----> Installing platform packages...
NOTICE: No runtime required in composer.lock; using PHP ^5.5.17
- apache (2.4.18)
- nginx (1.8.1)
- php (5.6.19)
-----> Installing dependencies...
Composer version 1.0.0-beta1 2016-03-03 15:15:10
-----> Preparing runtime environment...
NOTICE: No Procfile, using 'web: vendor/bin/heroku-php-apache2'.
-----> Checking for additional extensions to install...
-----> Discovering process types
Procfile declares types -> web
-----> Compressing...
Done: 13M
-----> Launching...
Released v43
https://<address>.herokuapp.com/ deployed to Heroku