neuronws / neuron-sync-heroku
该软件包最新版本(0.0.4)没有提供许可证信息。
同步Heroku应用中所有dynos的文件系统。
0.0.4
2015-01-10 02:24 UTC
This package is not auto-updated.
Last update: 2024-09-24 08:14:55 UTC
README
同步Heroku应用中所有dynos的文件系统。
需求
- Cedar-14堆栈。
- 原始仓库:Bitbucket或Github。
安装
- 使用composer下载
- 配置启动
- 设置配置变量
第1步:使用composer下载
运行以下命令添加此软件包
$ php composer.phar require neuronws/neuron-sync-heroku "*"
第2步:配置启动
创建文件 <app_root_path>/.profile.d/nws_sync.sh
,内容如下
/app/vendor/bin/nws_sync_boot.sh
并设置执行权限
chmod +x nws_sync.sh
第3步:设置配置变量
运行以下命令添加Heroku配置变量
$ heroku config:set NWS_SCRIPTS_SSH_PUB=... $ heroku config:set NWS_SCRIPTS_SSH_PRIV=... $ heroku config:set NWS_SYNC_ORIGIN_SSH_PUB=... $ heroku config:set NWS_SYNC_ORIGIN_BOOT_SSH_PUB=... $ heroku config:set NWS_SYNC_ORIGIN=... $ heroku config:set NWS_SYNC_ORIGIN_BOOT=...