Commit Graph

3447 Commits

Author SHA1 Message Date
Johannes Zellner b6ca37fcf6 Also collapse the app description when user clicks install 2015-07-13 14:21:35 +02:00
Johannes Zellner fa4eba1a52 Use ejs to allow smoother local webadmin development 2015-07-13 14:06:58 +02:00
Johannes Zellner cfc4233e16 add yargs node module 2015-07-13 14:06:19 +02:00
Johannes Zellner d017c2ec53 Add a prettier naked domain error page
Fixes #418
2015-07-12 19:16:20 +02:00
Johannes Zellner 5c365f32a5 Add inverted cloud logo 2015-07-12 19:15:32 +02:00
Johannes Zellner bd01f6f6bc Serve up temporarily the appstatus error page for naked domain
Part of #418
2015-07-12 17:39:34 +02:00
Girish Ramakrishnan 45dad2a974 AutoUpdate -> Autoupdater 2015-07-11 09:28:36 -07:00
Girish Ramakrishnan 966b7d1a09 Mark app as installed after restoration 2015-07-11 00:13:55 -07:00
Girish Ramakrishnan a27973d54e Default restore callbacks to setup calls
Without this restoring these addons won't set up the env variables!
2015-07-11 00:10:46 -07:00
Girish Ramakrishnan 6a9db4abc5 Add missing bind call 2015-07-11 00:03:12 -07:00
Girish Ramakrishnan 244c680916 Make addons take manifest argument so that restore can pass manifest for teardown
Most of the functions really only needs appId but some of them need
the location and it's also nice for debugging.
2015-07-11 00:03:12 -07:00
Girish Ramakrishnan 3c3cb5ce8c Fix restore
Fixes #424
2015-07-11 00:03:06 -07:00
Girish Ramakrishnan 3edc44e268 Can only restore apps that have a restore point 2015-07-10 15:11:05 -07:00
Girish Ramakrishnan a0b599880b Add note on why we validate port bindings 2015-07-10 15:09:39 -07:00
Girish Ramakrishnan 4eebf2d30b Delete old image on update if it changed 2015-07-10 14:30:02 -07:00
Girish Ramakrishnan 9aa1665a4d Setup things in a specific order 2015-07-10 14:25:36 -07:00
Girish Ramakrishnan c459059015 Add progress report for nginx configuration 2015-07-10 14:06:14 -07:00
Girish Ramakrishnan 6f07174b65 Remove superfluous comments 2015-07-10 14:05:12 -07:00
Girish Ramakrishnan 122dff4034 Verify manifest as the first thing 2015-07-10 14:04:50 -07:00
Girish Ramakrishnan 3c0b5fac22 Remove old oauth creds on a reinstall 2015-07-10 14:02:26 -07:00
Girish Ramakrishnan 0bc3a2ef55 Validate portBindings and manifest before restore 2015-07-10 13:42:03 -07:00
Girish Ramakrishnan 1884804cd0 Save old manifest in oldConfig 2015-07-10 13:14:36 -07:00
Girish Ramakrishnan c5a2ed9dc4 Fix failing test 2015-07-10 13:01:23 -07:00
Girish Ramakrishnan 5486f1e372 apps.update needs to read in old values to update config 2015-07-10 11:53:31 -07:00
Girish Ramakrishnan 9eb2feb90f lastConfig -> lastBackupConfig
Having a lastBackupConfig allows us to do rest API validation
in the restore route without having to download the backup and
extracting the config.json

So, this is really just an optimization for the 'last backup'.
2015-07-10 10:47:52 -07:00
Girish Ramakrishnan bdb5d965bb Pass old app config to app task
Girish 1 OCD 1

Creating a pure task based approach is not very easy with our current
approach. We use the app table entry to track status and all validation.
So, the approach of keeping old config in the table and passing around
a newConfig package is not happenning without touching lots of code.

The current approach simply stashes the old config in the apps table
itself. We could potentially move this to another 'tasks' table but
this then raises cleanup issues (should the taskmanager crash after
the apps has been removed...)

Fixes #416
2015-07-10 10:47:51 -07:00
Johannes Zellner bbff663d88 Fix webserver help link in error page 2015-07-10 14:40:34 +02:00
Girish Ramakrishnan c69ae602c2 Remove ununsed require 2015-07-10 01:55:40 -07:00
Girish Ramakrishnan 30dbc11a6c unregisterSubdomain does not require old subdomain anymore 2015-07-10 01:53:12 -07:00
Girish Ramakrishnan 664c1312d8 Add missing NOOP_CALLBACK define 2015-07-10 01:09:11 -07:00
Girish Ramakrishnan ae6403611c Make cloudron token an addon 2015-07-09 23:48:20 -07:00
Girish Ramakrishnan f413cd1678 Store the last app config and not just the manifest
This will make it possible to restore the app's location, port bindings
and manifest (i.e app version)
2015-07-09 21:57:31 -07:00
Girish Ramakrishnan 29d93b5679 Explicitly specify what is saved in config.json 2015-07-09 21:57:28 -07:00
Girish Ramakrishnan a9fd5299f9 Add missing export 2015-07-09 17:16:56 -07:00
Girish Ramakrishnan 3e900a966f Fix up exports (again)
Girish 0, OCD 1
2015-07-09 17:01:11 -07:00
Girish Ramakrishnan 7f9d266fd5 Make app updates automatic
Fixes #421
2015-07-09 11:35:07 -07:00
Girish Ramakrishnan c85b4248e4 Make a copy of boxUpdateInfo
There is a possibility that gBoxUpdateInfo gets updated by the
periodic update checker midway when an update is progressing.
2015-07-09 11:20:51 -07:00
Girish Ramakrishnan 085a3091bb Update users apps.js instead of appdb.js 2015-07-08 19:54:31 -07:00
Girish Ramakrishnan 52f3bd2076 Revert "updater already verifies version"
This doesn't work because updater does not realize that app
is updated...

This reverts commit ca6214aa12.
2015-07-08 19:50:28 -07:00
Girish Ramakrishnan ca6214aa12 updater already verifies version 2015-07-08 19:41:15 -07:00
Girish Ramakrishnan e8a4ee7d1f apps.js does not user updater anymore
This creates an unncessary circular dep between updater and apps
2015-07-08 19:28:54 -07:00
Girish Ramakrishnan c5e5dfc823 Do not delete container again in restore 2015-07-08 12:17:02 -07:00
Girish Ramakrishnan be3dc7fd91 Fixup the installation label based on health 2015-07-08 11:23:14 -07:00
Girish Ramakrishnan ef9e1b7555 reset health to null after installation
Part of #423

a health of null indicates lack of information
2015-07-08 11:13:39 -07:00
Girish Ramakrishnan 5c9bdba74f Mark unhealthy apps are errored apps
This will make the restore button appear for these apps

This, however, doesn't solve the case of an app that doesn't install
properly in a certain location (for example, the naked domain). It's
a corner case we have to live with for now.

Part of #423
2015-07-08 11:13:29 -07:00
Girish Ramakrishnan 8b41179716 Do not mark app as unhealthy until threshold
Part of #423
2015-07-08 09:54:00 -07:00
Girish Ramakrishnan 5af218a2db gLastSeen -> gHealthInfo 2015-07-08 08:14:45 -07:00
Girish Ramakrishnan 159cb635b0 Fix failing backup test 2015-07-08 07:20:17 -07:00
Girish Ramakrishnan 2747e151de Check every 4 hours if we had a successful backup
Fixes #420
2015-07-07 13:07:29 -07:00
Girish Ramakrishnan 058aca6f3d Put invitor email in invite
Also make the invitee username more explicit

Fixes #411
2015-07-06 21:40:15 -07:00