After pushing the whole application, The whole application is working fine. Then I upload some files to my uploads folder via my web interface.
If I push the code via git, All the files in uploads folder is deleting automaticaly. Is there a way to stop this in my openshift server ?
Your application should be storing any persistent files in the
$OPENSHIFT_DATA_DIR
, which is usually ~/app-root/data. Your application is likely storing these "uploads" into the$OPENSHIFT_REPO_DIR
, where your code lives. This directory is overwritten with your new code every time yougit push
.You need to configure your application to store the uploads in $OPENSHIFT_DATA_DIR to store them persistently.