Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pm2 #2

Open
amirhamza05 opened this issue Jan 15, 2022 · 1 comment
Open

pm2 #2

amirhamza05 opened this issue Jan 15, 2022 · 1 comment

Comments

@amirhamza05
Copy link
Member

amirhamza05 commented Jan 15, 2022

{
"authHost": "http://localhost",
"authEndpoint": "/broadcasting/auth",
"clients": [],
"database": "redis",
"databaseConfig": {
"redis": {},
"sqlite": {
"databasePath": "/database/laravel-echo-server.sqlite"
}
},
"devMode": true,
"host": null,
"port": "6001",
"protocol": "http",
"socketio": {},
"secureOptions": 67108864,
"sslCertPath": "",
"sslKeyPath": "",
"sslCertChainPath": "",
"sslPassphrase": "",
"subscribers": {
"http": true,
"redis": true
},
"apiOriginAllow": {
"allowCors": false,
"allowOrigin": "",
"allowMethods": "",
"allowHeaders": ""
}
}

echo-pm2.json

{
"name": "echo",
"script": "laravel-echo-server",
"args": "start"
}

pm2 start echo-pm2.json

@amirhamza05
Copy link
Member Author

  • docker network create redis || true
  • docker run -d --name redis --net redis -p 6379:6379 -p 8001:8001 redis/redis-stack:latest
  • docker run -d --name echo --net redis -p 6001:6001 -v $(pwd):/app -e "LARAVEL_ECHO_SERVER_GENERATE_CONFIG=false" oanhnn/laravel-echo-server

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant