Skip to content

WIP - Starter Back API REST + JWT with Silex + Capistrano - 2016-17 🛠

Notifications You must be signed in to change notification settings

qtshaimanga/starter-api-php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

88 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

API REST + JWT with SILEX Framework

USE Doctrine, Sqlite, Security & cnam/jwt Service Provider, Capistrano...

Install localy

  - curl -s http://getcomposer.org/installer | php
  - mv composer.phar /usr/local/bin/composer
  - (composer update)
  - composer install
  - create bdd and import USER
  - install sqlite driver

Run dev server

  - php -S localhost:8000 -t ./ ./index.php

Build and Production in api.air-edf.io/project/current

  - [server]
    - add /var/www/api/projectName
    - create linked_files and linked_dirs and .htaccess with rules for current
    - set chown for www-data:www-data tmp/*, shared/var/logs/* and shared/var/cache/*
    - install bdd and set rules
  - set deploy.rb : repo and name
  - After git add . / commit / push
  - cap production deploy (set server info before automatic install)
  - ok

Apache configuration if deploy in other folder

  - cap production apache:conf  

App crash > rollbask to the previous release

  - cap production deploy:rollback

About

WIP - Starter Back API REST + JWT with Silex + Capistrano - 2016-17 🛠

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published