Skip to content

Commit

Permalink
Fill in app-name in most places
Browse files Browse the repository at this point in the history
  • Loading branch information
chuck-dbos committed Mar 8, 2024
1 parent 6dd2ab9 commit c037023
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions e-commerce/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ The following steps are necessary to deploy the payment backend to the DBOS Clou
* Use the `npx dbos-cloud login` command from within the application directory, if you haven't already logged in.
* Provision a DBOS Cloud database instance (using `npx dbos-cloud database provision`) if you have not already done so.
* Register the application, using `npx dbos-cloud app register -d <dbname>`, with `<dbname>` set to match the name of the provisioned database server instance.
* In the dbos-config.yaml, set `frontend_host` to the URL that the payment server will have once deployed. This is of the form `https://<username>-<app-name>.cloud.dbos.dev`.
* In the dbos-config.yaml, set `frontend_host` to the URL that the payment server will have once deployed. This is of the form `https://<username>-payment-backend.cloud.dbos.dev`.
* Deploy the application, using `npx dbos-cloud app deploy`.

Be sure to note down the URL provided for accessing the payment backend; it is necessary for configuring the shop backend.
Expand All @@ -111,7 +111,7 @@ The Shop Frontend is built in [Next.js](https://nextjs.org/) and does not (curre

You can continue to run it locally:
* Change to the shop frontend application directory (`e-commerce/shop-frontend`).
* Set the environment variable `NEXT_PUBLIC_SHOP_BACKEND` to `https://<username>-<app-name>.cloud.dbos.dev/`
* Set the environment variable `NEXT_PUBLIC_SHOP_BACKEND` to `https://<username>-shop-backend.cloud.dbos.dev/`
* Run `npm run dev` to launch the app.
* All three processes are deployed and running, navigate to http://localhost:3000.

Expand Down

0 comments on commit c037023

Please sign in to comment.