Premium map based on leaflet and openstreetmap tiles
vagrant up
Now fire up your browser and open http://localhost:8085
Copy app/config/config.vagrant.default.php
to app/config/config.php
as a starting point with working database config.
vagrant destroy --force && vagrant up
install dependencies via
composer i
copy config template
cp ./app/config/config.sample.php ./app/config/config.php
edit config vars for mysql connection and collmex api connection
nano ./app/config/config.php
Run rsync -e ssh -rv --exclude='app/config/config.php' app public vendor composer.json composer.lock premium:/var/www/api.landkarte.premium-cola.de/
(replace premium with your access to the prod server) to deploy to production.
# Fetch new item from collmex database
php app/cli.php update
# Enrich items with geolocation information
php app/cli.php update geo
# Add new product
php app/cli.php product add "New beverage name" "Beverage description" collmexId
# List all products
php app/cli.php product list
# Delete existing product
php app/cli.php product delete 5
mysql landkarte < /var/backups/rsnapshot/*/mysql/*.sql
sudo apt-get install -y gcc make re2c libpcre3-dev php-dev build-essential php-zip
sudo curl -sS http://getcomposer.org/installer | php
sudo mv composer.phar /usr/local/bin/composer
sudo composer global require "phalcon/zephir:dev-master"
sudo composer require "phalcon/devtools" -d /usr/local/bin/
sudo ln -s /usr/local/bin/vendor/phalcon/devtools/phalcon.php /usr/bin/phalcon
sudo git clone https://github.com/phalcon/cphalcon.git -b 2.1.x --single-branch
cd cphalcon/
sudo ~/.composer/vendor/bin/zephir build --backend=ZendEngine3
sudo echo "extension=phalcon.so" >> /etc/php/7.0/fpm/conf.d/20-phalcon.ini
sudo echo "extension=phalcon.so" >> /etc/php/7.0/cli/conf.d/20-phalcon.ini
sudo service php7.0-fpm restart
composer install