![]() ![]() type use rocketchat to switch to the rocketchat database.ĭb.Open a Terminal session (or a SSH shell).Luckily enough, once the underlying cause of the issue has been exposed, the fix was easy enough to pull off: That's definitely a strange behaviour to deal with an environment variable, isn't it? The fix The reasonĪfter almost an hour I finally found the underlying reason of the problem: it seemed like, when the service is launched for the first time, it reads the ROOT_URL value and immediately writes it within the MongoDB database such db-stored value becomes then the only "source" that the web app actually reads on all subsequent starts, thus ignoring the ROOT_URL environment variable since then. Reboot command: unfortunately, none of those workaround worked. and even to reset the server by issuing a It goes without saying that I tried to reload the units. Such odd behaviour can be easily confirmed by launching a systemctl status rocketchat and see the Site URL parameter that will be shown in the console: you'll always see the firstly inserted ROOT_URL value there, regardless of any change you might have made to the ROOT_URL variable afterwards. If you type it properly (and don't want to change it afterwards) you'll be good to go: however, if you want (or need) to change it later on, you'll easily notice that all the subsequent changes you might want to apply to that environment variable won't work: as a matter of fact, the web service will still continue to listen to the old file. More precisely, you'll have to write it down in an Environment Variable called ROOT_URL, which is contained within the /lib/systemd/system/rvice file. The issueĪs for the latter issue, here's a breakdown summary for the problem: during the manual installation phase, you'll have to specify the remotely accessible URL for your own Rocket.Chart service, which will be in the following form: ![]() Unfortunately, at the time of writing there are no working fixes for the first issue (see issues #16179 and #16333, both still open and unresolved as of today) the only way to get over it is to perform a Manual Installation by strictly following the instructions given by the official website, which are basically OK - at least for CentOS 7 and 8. ![]() The ROOT_URL configuration settings works in a misleading way and can easily prevent you from being able to run the app.The Heroku one-click installer is broken (at the time of writing).Unfortunately, the project still has a lot of issues during the installation and first configuration phases for this very reason, within the first few hours I had to deal with several issues that were not documented in the official site and/or within the GitHub's issues tab. VideoUrl(): Video file to play, only supports what html video does.įields(): An array of Attachment Field Objects.Today I was playing with Rocket.Chat, a neat open source web chat platform / framework with a lot of useful features. ImageUrl(): The image to display, will be “big” and easy to see.ĪudioUrl(): Audio file to play, only supports what html audio does. TitleLinkDownload(): When this is true, a download icon appears and clicking this saves the link to file. TitleLink(): Providing this makes the title clickable, pointing to this link. Title(): Title to display for this attachment, displays under the author. MessageLink(): Only applicable if the ts is provided, as it makes the time clickable to this link.Ĭollapsed(): Causes the image, audio, and video sections to be hiding when collapsed is true.Īuthor($name, $link, $icon): shortcut for author methodsĪuthorLink(): Providing this makes the author name clickable and points to this link.ĪuthorIcon(): Displays a tiny icon to the left of the Author’s name. ThumbnailUrl(): An image that displays to the left of the text, looks better when this is relatively small. ISO8601 Zulu Date or instance of any \DateTime Timestamp(): Displays the time next to the text portion. ![]() Text(): The text to display for this attachment, it is different than the message’s text. Public function toRocketChat ( $notifiable ) # Available methodsĬolor(): The color you want the order on the left side to be, any value background-css supports. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |