https://github.com/adamrefaey/octane-demo
Laravel Octane demo: a demo app running on Octane server with Swoole using Sail
https://github.com/adamrefaey/octane-demo
docker docker-compose laravel octane php sail swoole
Last synced: 2 months ago
JSON representation
Laravel Octane demo: a demo app running on Octane server with Swoole using Sail
- Host: GitHub
- URL: https://github.com/adamrefaey/octane-demo
- Owner: adamrefaey
- Created: 2021-06-16T16:34:19.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2021-08-11T17:50:07.000Z (almost 5 years ago)
- Last Synced: 2025-04-07T11:49:20.311Z (about 1 year ago)
- Topics: docker, docker-compose, laravel, octane, php, sail, swoole
- Language: PHP
- Homepage:
- Size: 263 KB
- Stars: 4
- Watchers: 0
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Laravel Octane demo
### Demo app running on Octane server with Swoole using Sail
## Requirements
Docker and Docker Compose.
## Installation
1.
```bash
docker run --rm \
-v $(pwd):/opt \
-w /opt \
laravelsail/php80-composer:latest \
bash -c “composer install”
```
2.
```bash
./vendor/bin/sail build --no-cache
```
## Usage
```bash
./vendor/bin/sail up -d
```
- After the containers are up, Octane server will run automatically in `watch mode` so you can code and see that reflect in the browser.
- Octane server will run on port `8000`, so you can open your browser to `http://localhost:8000`