Skip to content

Run "heroku local" encounter /bin/sh: go-websocket-chat-demo: command not found #13

@tonyydl

Description

@tonyydl

I refer to this doc: https://devcenter.heroku.com/articles/go-websockets

and try to run heroku local, but I got failed:

➜  go-websocket-chat-demo git:(master) ✗ heroku local
[OKAY] Loaded ENV .env File as KEY=VALUE Format
10:18:20 ├F10: AM┤ web.1 |  /bin/sh: go-websocket-chat-demo: command not found
[DONE] Killing all processes with signal  SIGINT
10:18:20 ├F10: AM┤ web.1 Exited with exit code null

I also start redis server in local, but not working:

➜  ~ redis-server /usr/local/etc/redis.conf
79738:C 01 Nov 2021 10:15:52.979 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
79738:C 01 Nov 2021 10:15:52.979 # Redis version=6.2.6, bits=64, commit=00000000, modified=0, pid=79738, just started
79738:C 01 Nov 2021 10:15:52.979 # Configuration loaded
79738:M 01 Nov 2021 10:15:52.980 * Increased maximum number of open files to 10032 (it was originally set to 256).
79738:M 01 Nov 2021 10:15:52.980 * monotonic clock: POSIX clock_gettime
                _._
           _.-``__ ''-._
      _.-``    `.  `_.  ''-._           Redis 6.2.6 (00000000/0) 64 bit
  .-`` .-```.  ```\/    _.,_ ''-._
 (    '      ,       .-`  | `,    )     Running in standalone mode
 |`-._`-...-` __...-.``-._|'` _.-'|     Port: 6379
 |    `-._   `._    /     _.-'    |     PID: 79738
  `-._    `-._  `-./  _.-'    _.-'
 |`-._`-._    `-.__.-'    _.-'_.-'|
 |    `-._`-._        _.-'_.-'    |           https://redis.io
  `-._    `-._`-.__.-'_.-'    _.-'
 |`-._`-._    `-.__.-'    _.-'_.-'|
 |    `-._`-._        _.-'_.-'    |
  `-._    `-._`-.__.-'_.-'    _.-'
      `-._    `-.__.-'    _.-'
          `-._        _.-'
              `-.__.-'

79738:M 01 Nov 2021 10:15:52.991 # Server initialized
79738:M 01 Nov 2021 10:15:52.992 * Loading RDB produced by version 6.2.6
79738:M 01 Nov 2021 10:15:52.992 * RDB age 87931 seconds
79738:M 01 Nov 2021 10:15:52.992 * RDB memory usage when created 1.02 Mb
79738:M 01 Nov 2021 10:15:52.992 # Done loading RDB, keys loaded: 0, keys expired: 0.
79738:M 01 Nov 2021 10:15:52.992 * DB loaded from disk: 0.001 seconds
79738:M 01 Nov 2021 10:15:52.992 * Ready to accept connections

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions