Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/joseluisq/laravel-ci-deployment
Laravel 5.4 + Circle CI + Deployer example
https://github.com/joseluisq/laravel-ci-deployment
circle-ci deployer deployment laravel54 php
Last synced: 11 days ago
JSON representation
Laravel 5.4 + Circle CI + Deployer example
- Host: GitHub
- URL: https://github.com/joseluisq/laravel-ci-deployment
- Owner: joseluisq
- Archived: true
- Created: 2017-02-26T17:34:40.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-02-26T18:48:24.000Z (almost 8 years ago)
- Last Synced: 2024-04-14T04:23:31.035Z (10 months ago)
- Topics: circle-ci, deployer, deployment, laravel54, php
- Language: PHP
- Size: 1.95 KB
- Stars: 4
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# laravel-ci-deployment
> [Laravel 5.4](https://laravel.com/docs/5.4/) + [Circle CI](https://circleci.com/) + [Deployer](https://github.com/deployphp/deployer) example.
## Requirements
- Circle CI project connected with your Github or Bitbucket account.
- SSH key configured in your server and added to your Circle CI project at `PERMISSIONS > SSH Permissions`.## Project configuration
Add __deployer__ package to your laravel project as dev dependency.
```sh
composer require deployer/deployer --dev
```Copy the following files to your project's root:
- `deploy.php` (For more advanced features check out [Deployer](https://deployer.org/docs) documentation)
- `circle.yml` (For more advanced features check out [Circle CI](https://circleci.com/docs/1.0/) documentation)## Environment Variables
Add environment variables to your __Circle CI__ project at `BUILD SETTINGS > Environment Variables`. The values will be passed to `deploy.php` file later.```sh
MY_DEPLOY_SERVER # Your server domain or IP.MY_DEPLOY_USER # Your server username.
MY_DEPLOY_IDFILE # The Circle CI SSH key path. (~/.ssh/id_YOUR_HOSTNAME_VALUE)
#
# Example: Add your SSH server key at "PERMISSIONS > SSH Permissions" and
# in "Hostname" enter for example "myserver".
# Then, the "MY_DEPLOY_IDFILE" value should be
# "~/.ssh/id_myserver" (adding the "id_" prefix)MY_DEPLOY_PATH # Your server deploy path.
MY_DEPLOY_REPOSITORY # Your git repository path.
# E.g. [email protected]:joseluisq/myrepo.git
```__Note:__ The "double quotes" (in this example) are illustrative only.
## Test
Finally, send your commit ! :+1: