[英]How to run Heroku rails app locally without access to source code
My Heroku app is created and it also runs in my big commerce store but I want to run in locally. 我的Heroku应用程序已创建,并且也可以在我的大型商业商店中运行,但我想在本地运行。
Basically, I want to get all file in local machine from Heroku app. 基本上,我想从Heroku应用程序获取本地计算机中的所有文件。
Please help.. 请帮忙..
Since you have access to git repository, you just need to clone it 由于您有权访问git存储库,因此只需克隆它即可
git clone GIT_URL
then move into the app root directory 然后移至应用程序根目录
cd my_app
and then do 然后做
bundle install
now start the server 现在启动服务器
rails server
goto localhost:3000
from your browser.. 从浏览器转到
localhost:3000
。
Update 更新
Since you have access to heroku
, in the app dashboard goto settings near the bottom page you will find Heroku Git URL , clone that. 由于您有权访问
heroku
,因此在底部页面附近的应用程序仪表板转到设置中 ,您将找到Heroku Git URL ,将其克隆。
In a new empty folder just type this from cmd 在一个新的空文件夹中,只需输入cmd
git clone https://github.com/bigcommerce/hello-world-app-ruby-sinatra.git
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.