douchun1948 2019-02-15 00:19
浏览 111

关于在编辑* .php文件后不显示更改

About not displaying the change after editing the * .php file

I have the following application in heroku

https://heroku-magento-mozg.herokuapp.com/

Which has the following origin

https://github.com/mozgbrasil/heroku-magento

Using the following tool

https://heroku-magento-mozg.herokuapp.com/backdoor.php

I executed the commands to download and extract the following tool

https://github.com/kalcaddle/KodExplorer#install

Then using the following tool

http://heroku-magento-mozg.herokuapp.com/KodExplorer-master/index.php?editor

I edited the following file

https://heroku-magento-mozg.herokuapp.com/phpinfo.php

And I added script to display the value "214058"

After some time I tried to change to "21550"

But this change was not displayed

Today 15/02 in the access to phpinfo.php does not display any of the values ​​but the original file

I have seen that this occurs according to the documentation

https://devcenter.heroku.com/articles/dynos#ephemeral-filesystem

My application uses Composer that downloads Magento and its dependencies

It turns out that in the installation step when reporting the database data is being returned error, then I would try to edit the Magento file as per the instructions

https://magento.stackexchange.com/questions/84782/database-connection-error-magento-installation

As my application repository does not have the Magento files since Composer is used how would I make this possible editing?

  • 写回答

1条回答 默认 最新

  • dongtiannai0654 2019-02-15 00:32
    关注

    If you've changed the value using heroku cli, this won't work, because of the ephemeral filesystem. You'll need to commit the change and push the change up, and deploy the new changes.

    Each dyno gets its own ephemeral filesystem, with a fresh copy of the most recently deployed code. During the dyno’s lifetime its running processes can use the filesystem as a temporary scratchpad, but no files that are written are visible to processes in any other dyno and any files written will be discarded the moment the dyno is stopped or restarted

    Assuming you're using git to manage your code, just redeploy them. Heroku will pick these changes up and deploy a new version of your app.

    评论

报告相同问题?

悬赏问题

  • ¥15 虚幻5 UE美术毛发渲染
  • ¥15 CVRP 图论 物流运输优化
  • ¥15 Tableau online 嵌入ppt失败
  • ¥100 支付宝网页转账系统不识别账号
  • ¥15 基于单片机的靶位控制系统
  • ¥15 真我手机蓝牙传输进度消息被关闭了,怎么打开?(关键词-消息通知)
  • ¥15 装 pytorch 的时候出了好多问题,遇到这种情况怎么处理?
  • ¥20 IOS游览器某宝手机网页版自动立即购买JavaScript脚本
  • ¥15 手机接入宽带网线,如何释放宽带全部速度
  • ¥30 关于#r语言#的问题:如何对R语言中mfgarch包中构建的garch-midas模型进行样本内长期波动率预测和样本外长期波动率预测