# Fail to push a new version of application to the device

**URL:** <https://forums.balena.io/t/fail-to-push-a-new-version-of-application-to-the-device/17227>\
**Category:** openBalena\
**Created:** [June 27, 2019, 12:22am UTC](https://forums.balena.io/t/fail-to-push-a-new-version-of-application-to-the-device/17227 "2019-06-27T00:22:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![pli](https://avatars.discourse-cdn.com/v4/letter/p/85e7bf/32.png) [@pli](https://forums.balena.io/u/pli)\
**Post date:** [June 27, 2019, 12:22am UTC](https://forums.balena.io/t/fail-to-push-a-new-version-of-application-to-the-device/17227/1 "2019-06-27T00:22:12Z")

</div>

Hi,

We deployed an application to the raspberry pi3 and the deployment is running smooth. Now we want to update the application by using the same command “balena deploy myApp --logs --source . --emulated”. We got

[Info] Compose file detected  
[Info] Everything is up to date (use --build to force a rebuild)  
[Info] Creating release…  
[Info] Pushing images to registry…  
[Info] Saving release…  
[Success] Deploy succeeded!

but it is not pushing the updated application to the pi.

Thanks  
Patrick

---

<div class="post-metadata">

**Author:** ![mikesimos](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/mikesimos/32/1418_2.png) [@mikesimos](https://forums.balena.io/u/mikesimos)\
**Post date:** [June 27, 2019, 7:54am UTC](https://forums.balena.io/t/fail-to-push-a-new-version-of-application-to-the-device/17227/2 "2019-06-27T07:54:05Z")

</div>

Hi there! As stated in the `balena deploy` documentation [here](https://www.balena.io/docs/reference/cli/#deploy-appname-image) :

> Unless an image is specified, this command will look into the current directory (or the one specified by --source) for a docker-compose.yml file. If one is found, this command will deploy each service defined in the compose file, building it first if an image for it doesn’t exist.

So you can probably try using `--build` that will force a rebuild of the images.

---

<div class="post-metadata">

**Author:** ![jamesbut](https://avatars.discourse-cdn.com/v4/letter/j/7feea3/32.png) [@jamesbut](https://forums.balena.io/u/jamesbut)\
**Post date:** [August 14, 2019, 8:23pm UTC](https://forums.balena.io/t/fail-to-push-a-new-version-of-application-to-the-device/17227/4 "2019-08-14T20:23:35Z")

</div>

I also have this problem. I have deployed code - in fact the sense-snake code in the tutorial - but it is not downloading to my raspberry pi.

When I type ‘balena devices’, my device shows up and it shows STATUS: Idle and IS LINE: true but it does not seem to pull and run the pushed code.

Thanks  
James
