Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 1. npm install -g @rocket.chat/apps-cli
- 2. rc-apps create
- App Name: Hello World
- App Description: A basic app that prints Hello World!
- Author’s Name: John
- Author’s Home Page: rocketchat.com
- Author’s Support Page: support.rocketchat.com
- 3. Modify the class in the HelloWorldApp.ts file as follows:
- export class HelloWorldApp extends App {
- private readonly appLogger: ILogger
- constructor(info: IAppInfo, logger: ILogger, accessors: IAppAccessors) {
- super(info, logger, accessors)
- this.appLogger = this.getLogger()
- this.appLogger.debug('Hello, World!')
- }
- }
- 4. rc-apps deploy --url http://localhost:3000/ -u test -p test
- Error: ⟿ Problems conecting to Rocket.Chat at http://localhost:3000/ - please check the address
Advertisement
Add Comment
Please, Sign In to add comment