Run the migration
A one-off job runs the migration in a new container of the app, then stops.
The table does not exist yet. Thus the app answers 500 for now.
1 / 4
This is a one-off job. See Jobs & cron.
Run the migration
Terminal
$ ferry run notes --follow -- npm run migrateJob job-48dd0201159b41c3bb58 pending, streaming output…==> Running `npm run migrate`> migrate> node migrate.jsmigrations applied==> Job succeededJob job-48dd0201159b41c3bb58 succeeded (exit code 0)Try the app
Terminal
$ curl -X POST --data 'hello from Ferry' http://notes.localhost:8080/notessaved$ curl http://notes.localhost:8080/[{"id":1,"body":"hello from Ferry"}]The first command saves a note. The second command lists the notes.