Skip to content
This repository has been archived by the owner on Aug 5, 2020. It is now read-only.

Only try to push if build doesn't fail #34

Open
jansepar opened this issue Jul 16, 2012 · 0 comments
Open

Only try to push if build doesn't fail #34

jansepar opened this issue Jul 16, 2012 · 0 comments
Labels

Comments

@jansepar
Copy link
Contributor

Currently, if there is an issue with a build we still try and push it, which will fail because the bld folder will be removed. This should be fixed. Here is an example of an error log for this issue:

mobify push --message "RH Mobile"
Using saved credentials: [email protected]
Starting Build in bld
Built: bld\12-jun-search-icon.png.
Built: bld\icons.png.
Built: bld\[email protected].
Built: bld\style.css.
Problem building 'mobify.js':
Error: Failed loading partial: {)"/base\tmpl\base_root.tmpl"}
Built: bld\mobify.js.
There were some errors in the build process.
Removing bld

fs.js:357
return binding.rmdir(pathModule._makeLong(path));
^
Error: ENOTEMPTY, directory not empty 'D:\website\bld'
at Object.rmdirSync (fs.js:357:18)
at Object.rmdirSyncRecursive (C:\AppData\Roaming\npm\node_modules\mobify-client\node_modules\wrench\lib\wrench.js:155:15)
at C:\AppData\Roaming\npm\node_modules\mobify-client\src\commands.coffee:107:18
at C:\AppData\Roaming\npm\node_modules\mobify-client\src\project.coffee:107:11
at Builder.(anonymous) (C:\AppData\Roaming\npm\node_modules\mobify-client\src\build.coffee:553:16)
at Builder.emit (events.js:64:17)
at C:\AppData\Roaming\npm\node_modules\mobify-client\src\build.coffee:505:26
at C:\AppData\Roaming\npm\node_modules\mobify-client\node_modules\async\lib\async.js:94:25
at C:\AppData\Roaming\npm\node_modules\mobify-client\src\build.coffee:496:20
at Stub.callback (C:\AppData\Roaming\npm\node_modules\mobify-client\src\build.coffee:290:13)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Development

No branches or pull requests

1 participant