Skip to content
This repository has been archived by the owner on Dec 2, 2022. It is now read-only.

Deployment issues #104

Open
lqmanh opened this issue May 31, 2020 · 1 comment
Open

Deployment issues #104

lqmanh opened this issue May 31, 2020 · 1 comment

Comments

@lqmanh
Copy link
Contributor

lqmanh commented May 31, 2020

Hi,
I'm having some issues when trying to deploy my project using OpenAPI.

  • Whenever I use saasify dev, there is this error: Unsupported service type "undefined".
  • If I use saasify deploy, it requires backendUrl or SAASIFY_BACKEND_URL. However, when I add that field, this error pops up:
    Request failed with status code 400
    OpenAPI error: Error opening file "/opt/render/project/src/api/dist/openapi.json"
    ENOENT: no such file or directory, open '/opt/render/project/src/api/dist/openapi.json'

Here is my saasify.json:

{
  ...
  "openapi": "./dist/openapi.json",
  "backendUrl": "https://httpbin.org",
  "services": [
    {
      "path": "/scraper",
      "httpMethod": "POST",
      "examples": [...]
    }
  ]
}

I use Nestjs with @nestjs/swagger to generate that openapi.json file

@transitive-bullshit
Copy link
Member

Hey Lương, I would recommend not using the openapi support right now and just pointing Saasify to your backendUrl.

saasify dev is pretty out of date at the moment.

Feel free to join us on slack if you have additional questions for getting started: https://slack.saasify.sh.

@transitive-bullshit transitive-bullshit changed the title Unable to deploy, both in development and production mode Deployment issues Aug 10, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants