cloudron 7.0.5 → 7.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cloudron",
3
- "version": "7.0.5",
3
+ "version": "7.0.6",
4
4
  "license": "MIT",
5
5
  "description": "Cloudron Commandline Tool",
6
6
  "type": "module",
package/src/actions.js CHANGED
@@ -106,10 +106,14 @@ async function stopActiveTask(app, options) {
106
106
  function saveCwdAppId(appId, manifestFilePath) {
107
107
  if (!manifestFilePath) return;
108
108
 
109
- const sourceDir = path.dirname(manifestFilePath);
110
- const cwdConfig = config.getCwdConfig(sourceDir);
111
- cwdConfig.appId = appId;
112
- config.setCwdConfig(sourceDir, cwdConfig);
109
+ try {
110
+ const sourceDir = path.dirname(manifestFilePath);
111
+ const cwdConfig = config.getCwdConfig(sourceDir);
112
+ cwdConfig.appId = appId;
113
+ config.setCwdConfig(sourceDir, cwdConfig);
114
+ } catch (e) { // will happen when run on EROFS (set HOME to avoid)
115
+ console.log(`Warning: Could not save app id to config: ${e.message} . Try setting $HOME`);
116
+ }
113
117
  }
114
118
 
115
119
  // appId may be the appId or the location
@@ -295,11 +295,6 @@ async function build(localOptions, cmd) {
295
295
 
296
296
  const appConfig = config.getCwdConfig(sourceDir);
297
297
  const buildServiceConfig = getEffectiveBuildServiceConfig(options);
298
- if (buildServiceConfig.type === 'remote' && buildServiceConfig.url) {
299
- console.log('Building using remote build service at %s', buildServiceConfig.url);
300
- } else {
301
- console.log('Building locally with Docker.');
302
- }
303
298
 
304
299
  let repository = appConfig.repository;
305
300
  if (!repository || options.repository) {