GithubHelp home page GithubHelp logo

chaskiq / chaskiq Goto Github PK

View Code? Open in Web Editor NEW
2.9K 52.0 427.0 38.15 MB

A full featured Live Chat, Support & Marketing platform, alternative to Intercom, Drift, Crisp, etc from cience.com

Home Page: https://chaskiq.io

License: Other

Ruby 35.71% JavaScript 5.02% CSS 0.30% HTML 4.93% Dockerfile 0.06% Shell 0.07% SCSS 0.01% Haml 1.43% TypeScript 52.47% Procfile 0.01%
rails react graphql messenger messenger-platform messenger-chatbots newsletter-management chat support-ticket tour-guide-app

chaskiq's Introduction

image

Chaskiq

Free & Source Available Messaging Platform for Marketing, Support & Sales

The front line of your customer service.

Push Docker Image

CI

CI

Crowdin


Deploy

Main features:

  • Customer Segment Filters with custom attributes support
  • Web Messenger embed
  • Agent's conversation routing
  • Text chat with customizable content blocks support
  • Video Calls !
  • Triggerable conversational bots
  • Mailing campaigns
  • Onboarding tours
  • API integrations - Whatsapp / Twitter DM / Slack / Calendly / Zoom and more!
  • CRM integration - Pipedrive supported
  • Webhooks
  • Help Center system with multilanguage support
  • API support - consumable via GrapqhQL with Oauth authorization
  • Quick replies (as canned responses)
  • Configurable Data protection (GDPR) consent
  • Audits on Access and records changes
  • Composable Roles access/permissions system
  • Pluggable Reports

And many features to come

To learn more about the philosophy and goals of the project, visit chaskiq.io.

Embeddable WebChat:

  • A powerful text editor for the chat based in Dante2 Wysiwyg.
  • Animated Gifs.
  • Embeddable Videos from Youtube, Vimeo.
  • Embedable webpages via Oembed protocol.
  • Video Recorder.
  • Video Calls via RTC protocol.
  • Third party apps like Calendly & Zoom.
  • Colorized Code via Prism.js.

image

Dashboard panel

We have designed the dashboard with an extensible & pluggable architecture, you can implement your own dashboard blocks to customize it with external data sources.

Also it can display the visit activity and the conversation performance like reply rate times & response averages.

Help Center

Chaskiq has a powerful article content creator which can serve as a Help Center / Knowledge base system. it can live on a custom domain or in the same webchat for your customer auto assistance.

image

Development

To get your environment setup, follow the community setup guide for your operating system.

  1. If you're on macOS, try the macOS development guide.
  2. If you're on Ubuntu, try the Ubuntu development guide.
  3. If you're on Windows, try the Windows 10 development guide.
  4. If you want to develop on Docker Docker Dev Guide

Before you get started, ensure you have the following minimum versions: Ruby 2.6+, PostgreSQL 10+, Redis 2.6+.

Setting up Chaskiq

If you want to set up a Chaskiq for production use, see our Chaskiq Install Guide.

Requirements

Chaskiq is built for the next 10 years of the Internet, so our requirements are high:

Browsers Tablets Phones
Safari 10+ iPad 4+ iOS 10+
Google Chrome 57+ Android 4.4+ Android 4.4+
Internet Explorer 11+
Firefox 52+

Built With

  • Ruby on Rails — Our back end API is a Rails app. It responds to requests RESTfully in JSON.
  • React.js — Our front end is an React.js app that communicates with the Rails Graphql API.
  • PostgreSQL — Our main data store is in Postgres.
  • Redis — We use Redis as a cache and for transient data.

Plus lots of Ruby Gems, a complete list of which is at /main/Gemfile.

The Chaskiq Team

For a complete list of the many individuals that contributed to the design and implementation of Chaskiq, please refer to GitHub's list of contributors.

Commercial license

The commercial license is designed to for you to use Chaskiq in commercial products and applications, without the provisions of the AGPL-3.0-or-later + commons clause. With the commercial license, your code is kept proprietary, to yourself. See the Chaskiq Commercial License at chaskiq.io

chaskiq's People

Contributors

7ute avatar cleiton080 avatar commanderroot avatar dependabot[bot] avatar dp6ai avatar dtricks avatar ericraio avatar f10atin9 avatar jalberto avatar johnny-hsiao avatar laurentubik avatar lmancilla avatar lporras avatar luctus avatar marcbest avatar marinaxkonsta avatar menfs-at-think avatar michelson avatar nahanil avatar noah-haf avatar nuxor3000 avatar olimart avatar shishircse06 avatar technologyclassroom avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

chaskiq's Issues

Heroku easy install its not that easy

Easy heroku install is asking for many required ENV VARS that I don't know nothing about nor described in the docs.

I'm close to quit. Have tried many ways just to setup an environment and see whats going on here but none of them worked.

Feature request

Hello there 👋
This issue is dedicated to discuss new features that you would like to see on the app. You can upvote or add 👍 to existing issues if they're already commented.

page targeting on in app messages

Page targeting

Send more contextual messages by waiting a period of time on page or targeting specific URLs

When to deliver this message

  • When the user lands on the page

  • After a user has spent a period of time on page

  • What page to deliver this message on

  • Any page

  • Only on certain pages

Dante styling

  • image styles on draft rendered (docs)
  • hide default caption on images
  • dante icons on messenger
  • fix video upload on conversation

screenshots

Widget

image

image

Dashboard panel

image

Conversations

image

Visitor Profile

image

Help Center

image

app settings page

  • app setttings form
  • security form
  • checkboxes section for preferences

Docker compose config not worked, run failed

docker-compose up webpacker
Creating chaskiq-master_webpacker_1 ... done
Attaching to chaskiq-master_webpacker_1
webpacker_1 | /usr/local/lib/ruby/site_ruby/2.6.0/bundler/definition.rb:495:in validate_ruby!': Your Ruby version is 2.6.3, but your Gemfile specified 2.6.5 (Bundler::RubyVersionMismatch) webpacker_1 | from /usr/local/lib/ruby/site_ruby/2.6.0/bundler/definition.rb:470:in validate_runtime!'
webpacker_1 | from /usr/local/lib/ruby/site_ruby/2.6.0/bundler.rb:143:in setup' webpacker_1 | from /usr/local/lib/ruby/site_ruby/2.6.0/bundler/setup.rb:20:in block in <top (required)>'
webpacker_1 | from /usr/local/lib/ruby/site_ruby/2.6.0/bundler/ui/shell.rb:136:in with_level' webpacker_1 | from /usr/local/lib/ruby/site_ruby/2.6.0/bundler/ui/shell.rb:88:in silence'
webpacker_1 | from /usr/local/lib/ruby/site_ruby/2.6.0/bundler/setup.rb:20:in <top (required)>' webpacker_1 | from /usr/local/lib/ruby/site_ruby/2.6.0/rubygems/core_ext/kernel_require.rb:92:in require'
webpacker_1 | from /usr/local/lib/ruby/site_ruby/2.6.0/rubygems/core_ext/kernel_require.rb:92:in require' webpacker_1 | from ./bin/webpack-dev-server:12:in

'
chaskiq-master_webpacker_1 exited with code 1

Multiple brands

Are multiple knowledgebases and chat widgets supported at this stage?

Sign In Issues

First off, I failed to say this in my last issue but I just wanted to congratulate you on a great product! So far I'm super impressed with Chaskiq and everything it does.

Now, onto the issue(s) at hand... when I enter an incorrect email/password combo on the login screen, I see a little flicker of the dashboard first before I get an error and get sent back to the login screen. Is there any way to prevent this (and just keep the user on the login screen)? Related, I'm getting a 500 and general error message every time I enter a wrong email/password instead of a 401 or something more specific - should this be happening? Would this be related to the flicker?

A second unrelated question I have is about roles and if there's anything non-admin agents should be prevented from seeing. Right now when I sign in as a non-admin, I'm not able to create new apps or see a list of them, but I am able to do things like change the app's settings. Should this be happening? If so, and if I wanted to change this, do you have any recommendations on how to proceed with what exists already in Chaskiq? Or should I look into adding something like Pundit for this for my own needs?

TODO

  • handle channel connection disconnection properly
  • handle channel id by convo properly
  • refresh message settings when change tab

  • display metrics
  • fix dante tooltip
  • adapt dante tooltip with bold , h3, h1
  • embeds enpoint fix

frontend enhancements

sessions

  • align links texts
  • remove signup

layout

  • responsive drawer

conversation

  • responsive panels

conversations:

  • [?] align more on elements on conversation list item

articles

  • mobile support
  • filter published / all / drafts

segments:

  • filter type missing (visitor, lead, user)
  • table: subscribed state badge or pill?
  • loading state

campaigns:

  • save snackbar notificiations
  • tours:
    • enhance editor
    • menu list for actions

bots

  • general:
    • implement stats
    • enhance editor
    • list really filter leads & users
    • settings formatting/alignments

app settings

  • responsive forms
  • responsive menu (scrolling enabled)
  • settings alignments

ERROR: Version in "./docker-compose.yml" is unsupported

Hello,

I tried installing with docker, it always didn't work, I tried changing the version on the file and it didn't work and had the same error

ERROR: Version in "./docker-compose.yml" is unsupported. You might be seeing this error because you're using the wrong Compose file version. Either specify a version of "2" (or "2.0") and place your service definitions under the serviceskey, or omit theversion key and place your service definitions at the root of the file to use version 1. For more on the Compose file format versions, see https://docs.docker.com/compose/compose-file/

root@94c192c87a:~/chaskiq# docker -v
Docker version 19.03.12, build 48a66213fe

I try install with heroku success, but the application cannot be accessed. Also with ubuntu Your Ruby version is 2.3.1, but your Gemfile specified 2.6.5 🙄
is there an easier way to do the installation?

rake admin:create

As per the Ubuntu setup doc when run the following command

RAILS_ENV=development bundle exec rake admin:create

Its giving error

rake aborted!
Don't know how to build task 'admin:create' (See the list of available tasks with `rake --tasks`)
Did you mean?  db:create

Empty TranslatedMessenger?

Maybe this is a total noob question, but I just set up Chaskiq on heroku and tested it out by pasting the code snippet on a separate site of mine - everything loads fine but it just seems to be empty. Here's is what I end up with on my page after the JS loads...

<div id="ChaskiqMessengerRoot">
   <div class="css-fh7lak"></div>
   <div id="TourManager"></div>
</div>

Am I missing something? Is there some other setup I need to do or something else I did wrong somewhere that might be causing this?

rbenv: version `2.6.5' is not installed

In linux instructions to generate a dev machine

Installing Ruby 2.7.1 ...

then

rbenv: version `2.6.5' is not installed (set by /code/chaskiq/.ruby-version)

Mobile Conversation UI

There are a few UI problems I noticed when viewing a conversation as an agent from Safari on my iPhone...

First, messages seem to be stacked on top of each other as shown below...

image

Second, not all of the messages in the conversation load at first, but when I send a new message, then all of the messages in the conversation appear. Also, they newly added messages are all crammed even tighter and the scroll view size doesn’t expand to fit more messages...

image

API docs

Is there any docs for the API or endpoints list?

Error build with heroku

I am still curious to successfully install chaskiq, but to this day no I have never managed to install, all the tutorial methods written in my documentation have followed in detail but it really is very difficult and nothing works until it's finished.

Now I try install again with heroku, the error still same as previously

root@platform:~/chaskiq# heroku run rails admin_generator
Running rails admin_generator on ⬢ serene-reaches-59471... up, run.1753 (Free)
W, [2020-07-25T15:19:37.765395 #4]  WARN -- [Bugsnag]: No valid API key has been set, notifications will not be sent
rails aborted!
ActiveRecord::RecordNotSaved: You cannot call create unless the parent is saved
/app/vendor/bundle/ruby/2.6.0/gems/activerecord-6.0.3.2/lib/active_record/associations/collection_association.rb:337:in `_create_record'
/app/vendor/bundle/ruby/2.6.0/gems/activerecord-6.0.3.2/lib/active_record/associations/has_many_association.rb:115:in `_create_record'
/app/vendor/bundle/ruby/2.6.0/gems/activerecord-6.0.3.2/lib/active_record/associations/association.rb:195:in `create'
/app/vendor/bundle/ruby/2.6.0/gems/activerecord-6.0.3.2/lib/active_record/associations/collection_proxy.rb:347:in `create'
/app/app/models/app.rb:219:in `add_admin'
/app/lib/tasks/admin_generator.rake:4:in `block in <main>'
/app/vendor/bundle/ruby/2.6.0/gems/bugsnag-6.11.1/lib/bugsnag/integrations/rake.rb:18:in `execute_with_bugsnag'
/app/vendor/bundle/ruby/2.6.0/gems/railties-6.0.3.2/lib/rails/commands/rake/rake_command.rb:23:in `block in perform'
/app/vendor/bundle/ruby/2.6.0/gems/railties-6.0.3.2/lib/rails/commands/rake/rake_command.rb:20:in `perform'
/app/vendor/bundle/ruby/2.6.0/gems/railties-6.0.3.2/lib/rails/command.rb:48:in `invoke'
/app/vendor/bundle/ruby/2.6.0/gems/railties-6.0.3.2/lib/rails/commands.rb:18:in `<main>'
/app/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require'
/app/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `block in require_with_bootsnap_lfi'
/app/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
/app/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `require_with_bootsnap_lfi'
/app/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
/app/vendor/bundle/ruby/2.6.0/gems/activesupport-6.0.3.2/lib/active_support/dependencies.rb:324:in `block in require'
/app/vendor/bundle/ruby/2.6.0/gems/activesupport-6.0.3.2/lib/active_support/dependencies.rb:291:in `load_dependency'
/app/vendor/bundle/ruby/2.6.0/gems/activesupport-6.0.3.2/lib/active_support/dependencies.rb:324:in `require'
/app/bin/rails:6:in `<main>'
Tasks: TOP => admin_generator
(See full trace by running task with --trace)

Has anyone successfully installed chaskiq? I searched for tutorials on google, also very minimal users of chaskiq.
If this still doesn't work and stuck, it's likely I'll leave Chaskiq and search for something easier

Thank you.

Dockerfile seems to be missing webpack-dev-server

webpacker_1  | yarn run v1.13.0
webpacker_1  | error Command "webpack-dev-server" not found.
webpacker_1  | info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
chaskiq_webpacker_1 exited with code 1

Navigation and Routing issues after installing

I am running chaskiq with docker on a dev env and port 3000. Having trouble with the navigation and routing. Need a sample env file or to figure out what env variable I misconfigured or might need to add. Errors I see in the console

Screen Shot 2020-05-03 at 12 22 02 PM

development.rb


# frozen_string_literal: true

Rails.application.configure do
  # Settings specified here will take precedence over those in config/application.rb.

  # In the development environment your application's code is reloaded on
  # every request. This slows down response time but is perfect for development
  # since you don't have to restart the web server when you make code changes.
  config.cache_classes = false

  # config.hosts << "dea224b3.ngrok.io"
  config.hosts << "swellenterprise.info"

  # Do not eager load code on boot.
  config.eager_load = false

  config.cache_store = :redis_cache_store

  # Show full error reports.
  config.consider_all_requests_local = true

  config.action_mailer.preview_path = "#{Rails.root}/spec/mailers/previews"


  Rails.application.routes.default_url_options = { host: 'swellenterprise.info:3000' }
  config.action_controller.default_url_options = { host: 'swellenterprise.info:3000' }
  config.action_mailer.default_url_options = { host: 'http://localhost:3000' }

  # config.action_cable.url = "ws://104.248.126.166:3334/cable"
  config.action_cable.url = 'ws://localhost:3000/cable'
  config.action_cable.allowed_request_origins = ['http://localhost:3000', 'http://127.0.0.1:3000']

  # Enable/disable caching. By default caching is disabled.
  # Run rails dev:cache to toggle caching.
  if Rails.root.join('tmp', 'caching-dev.txt').exist?
    config.action_controller.perform_caching = true
    config.action_controller.enable_fragment_cache_logging = true

    config.cache_store = :memory_store
    config.public_file_server.headers = {
      'Cache-Control' => "public, max-age=#{2.days.to_i}"
    }
  else
    config.action_controller.perform_caching = false

    config.cache_store = :null_store
  end

  # Store uploaded files on the local file system (see config/storage.yml for options).
  config.active_storage.service = :local

  # Don't care if the mailer can't send.
  config.action_mailer.raise_delivery_errors = false

  config.action_mailer.perform_caching = false

  # Print deprecation notices to the Rails logger.
  config.active_support.deprecation = :log

  # Raise an error on page load if there are pending migrations.
  config.active_record.migration_error = :page_load

  # Highlight code that triggered database queries in logs.
  config.active_record.verbose_query_logs = true

  # Debug mode disables concatenation and preprocessing of assets.
  # This option may cause significant delays in view rendering with a large
  # number of complex assets.
  config.assets.debug = true

  # Suppress logger output for asset requests.
  config.assets.quiet = true

  # Raises error for missing translations.
  # config.action_view.raise_on_missing_translations = true

  # Use an evented file watcher to asynchronously detect changes in source code,
  # routes, locales, etc. This feature depends on the listen gem.
  config.file_watcher = ActiveSupport::EventedFileUpdateChecker

  ActionMailer::Base.add_delivery_method :ses, AWS::SES::Base,
                                         access_key_id: "ABC123",
                                         secret_access_key: "ABC123"

  config.action_mailer.perform_deliveries = false
  config.action_mailer.delivery_method = :ses
  config.action_controller.asset_host = 'http://swellenterprise.info:3000/'


  # ACTIVE JOB 
  config.active_job.queue_adapter = :sidekiq


  # config.action_mailer.delivery_method = :smtp
  # config.action_mailer.smtp_settings = {
  #  :address => Rails.application.credentials.dig(:ses, :address),
  #  :user_name => Rails.application.credentials.dig(:ses, :user_name), # Your SMTP user here.
  #  :password => Rails.application.credentials.dig(:ses, :password), # Your SMTP password here.
  #  :authentication => :login,
  #  :enable_starttls_auto => true
  # }
end

.env

HOST=http://swellenterprise.info:3000
WS=wss://localhost:3000/cable
CABLE_URL=wss://localhost:3000/cable

SNS_CONFIGURATION_SET=metrics

SES_ADDRESS=email-smtp.us-east-1.amazonaws.com
SES_USER_NAME=
SES_PASSWORD=

AWS_ACCESS_KEY_ID=ABC123
AWS_SECRET_ACCESS_KEY=ABC123
AWS_S3_BUCKET=designloud
AWS_S3_REGION=us-east-1

FULLCONTACT_TOKEN=

NODE_ENV=development

HTTP_HOST=http://swellenterprise.info:3000
#ASSET_HOST=http://swellenterprise.info:3000
#HTTP_ORIGIN=http://swellenterprise.info
RAILS_ENV=development

Cannot send media only from admin

When I try to send a photo/video to a conversation as an agent, the send button is disabled unless there is some text in the field too. Can this be fixed to allow sending only a photo/video in a message?

case-sensitive paths on a case-insensitive

There are two files with the same name for a case-insensitive OS:

'app/javascript/src/components/SelectMenu.js'
 'app/javascript/src/components/selectMenu.js'

Im using MacOS

Normal docker-compose

I tried to install, and I had questions in the build because of the docker plugin.

I would like a docker composer file, and 1 main container with environment for connecting to redis, databases and so on.

TODO 2

  • pagination on message in chat view
  • reads on old messages not quite there
  • fix uploads on editor
  • remove atlaskit

Install Production on Ubuntu/Docker

Hello,

A few days ago I successful to install on heroku, but I remove app after a few days of testing because I want to install the application on my own server.
But the problem here is that I've tried a number of installation methods https://dev.chaskiq.io/en/collections/getting-started, none of which have really worked and the error is the same like this

root@platform:~/chaskiq# docker-compose run rails rake db:create
Starting chaskiq_postgres_1 ... done
Starting chaskiq_redis_1    ... done
FATAL:  role "postgres" does not exist
Couldn't create 'postgres' database. Please check your configuration.
rake aborted!
ActiveRecord::NoDatabaseError: FATAL:  role "postgres" does not exist
/usr/local/bundle/gems/activerecord-6.0.3.2/lib/active_record/connection_adapters/postgresql_adapter.rb:50:in `rescue in postgresql_connection'
/usr/local/bundle/gems/activerecord-6.0.3.2/lib/active_record/connection_adapters/postgresql_adapter.rb:33:in `postgresql_connection'
/usr/local/bundle/gems/activerecord-6.0.3.2/lib/active_record/connection_adapters/abstract/connection_pool.rb:887:in `new_connection'
/usr/local/bundle/gems/activerecord-6.0.3.2/lib/active_record/connection_adapters/abstract/connection_pool.rb:931:in `checkout_new_connection'
/usr/local/bundle/gems/activerecord-6.0.3.2/lib/active_record/connection_adapters/abstract/connection_pool.rb:910:in `try_to_checkout_new_connection'
/usr/local/bundle/gems/activerecord-6.0.3.2/lib/active_record/connection_adapters/abstract/connection_pool.rb:871:in `acquire_connection'
/usr/local/bundle/gems/activerecord-6.0.3.2/lib/active_record/connection_adapters/abstract/connection_pool.rb:593:in `checkout'
/usr/local/bundle/gems/activerecord-6.0.3.2/lib/active_record/connection_adapters/abstract/connection_pool.rb:437:in `connection'
/usr/local/bundle/gems/activerecord-6.0.3.2/lib/active_record/connection_adapters/abstract/connection_pool.rb:1119:in `retrieve_connection'
/usr/local/bundle/gems/activerecord-6.0.3.2/lib/active_record/connection_handling.rb:221:in `retrieve_connection'
/usr/local/bundle/gems/activerecord-6.0.3.2/lib/active_record/connection_handling.rb:189:in `connection'
/usr/local/bundle/gems/activerecord-6.0.3.2/lib/active_record/tasks/postgresql_database_tasks.rb:12:in `connection'
/usr/local/bundle/gems/activerecord-6.0.3.2/lib/active_record/tasks/postgresql_database_tasks.rb:21:in `create'
/usr/local/bundle/gems/activerecord-6.0.3.2/lib/active_record/tasks/database_tasks.rb:126:in `create'
/usr/local/bundle/gems/activerecord-6.0.3.2/lib/active_record/tasks/database_tasks.rb:185:in `block in create_current'
/usr/local/bundle/gems/activerecord-6.0.3.2/lib/active_record/tasks/database_tasks.rb:479:in `block (2 levels) in each_current_configuration'
/usr/local/bundle/gems/activerecord-6.0.3.2/lib/active_record/tasks/database_tasks.rb:476:in `each'
/usr/local/bundle/gems/activerecord-6.0.3.2/lib/active_record/tasks/database_tasks.rb:476:in `block in each_current_configuration'
/usr/local/bundle/gems/activerecord-6.0.3.2/lib/active_record/tasks/database_tasks.rb:475:in `each'
/usr/local/bundle/gems/activerecord-6.0.3.2/lib/active_record/tasks/database_tasks.rb:475:in `each_current_configuration'
/usr/local/bundle/gems/activerecord-6.0.3.2/lib/active_record/tasks/database_tasks.rb:184:in `create_current'
/usr/local/bundle/gems/activerecord-6.0.3.2/lib/active_record/railties/databases.rake:39:in `block (2 levels) in <main>'
/usr/local/bundle/gems/bugsnag-6.11.1/lib/bugsnag/integrations/rake.rb:18:in `execute_with_bugsnag'

Caused by:
PG::ConnectionBad: FATAL:  role "postgres" does not exist
/usr/local/bundle/gems/pg-1.1.4/lib/pg.rb:56:in `initialize'
/usr/local/bundle/gems/pg-1.1.4/lib/pg.rb:56:in `new'
/usr/local/bundle/gems/pg-1.1.4/lib/pg.rb:56:in `connect'
/usr/local/bundle/gems/activerecord-6.0.3.2/lib/active_record/connection_adapters/postgresql_adapter.rb:46:in `postgresql_connection'
/usr/local/bundle/gems/activerecord-6.0.3.2/lib/active_record/connection_adapters/abstract/connection_pool.rb:887:in `new_connection'
/usr/local/bundle/gems/activerecord-6.0.3.2/lib/active_record/connection_adapters/abstract/connection_pool.rb:931:in `checkout_new_connection'
/usr/local/bundle/gems/activerecord-6.0.3.2/lib/active_record/connection_adapters/abstract/connection_pool.rb:910:in `try_to_checkout_new_connection'
/usr/local/bundle/gems/activerecord-6.0.3.2/lib/active_record/connection_adapters/abstract/connection_pool.rb:871:in `acquire_connection'
/usr/local/bundle/gems/activerecord-6.0.3.2/lib/active_record/connection_adapters/abstract/connection_pool.rb:593:in `checkout'
/usr/local/bundle/gems/activerecord-6.0.3.2/lib/active_record/connection_adapters/abstract/connection_pool.rb:437:in `connection'
/usr/local/bundle/gems/activerecord-6.0.3.2/lib/active_record/connection_adapters/abstract/connection_pool.rb:1119:in `retrieve_connection'
/usr/local/bundle/gems/activerecord-6.0.3.2/lib/active_record/connection_handling.rb:221:in `retrieve_connection'
/usr/local/bundle/gems/activerecord-6.0.3.2/lib/active_record/connection_handling.rb:189:in `connection'
/usr/local/bundle/gems/activerecord-6.0.3.2/lib/active_record/tasks/postgresql_database_tasks.rb:12:in `connection'
/usr/local/bundle/gems/activerecord-6.0.3.2/lib/active_record/tasks/postgresql_database_tasks.rb:21:in `create'
/usr/local/bundle/gems/activerecord-6.0.3.2/lib/active_record/tasks/database_tasks.rb:126:in `create'
/usr/local/bundle/gems/activerecord-6.0.3.2/lib/active_record/tasks/database_tasks.rb:185:in `block in create_current'
/usr/local/bundle/gems/activerecord-6.0.3.2/lib/active_record/tasks/database_tasks.rb:479:in `block (2 levels) in each_current_configuration'
/usr/local/bundle/gems/activerecord-6.0.3.2/lib/active_record/tasks/database_tasks.rb:476:in `each'
/usr/local/bundle/gems/activerecord-6.0.3.2/lib/active_record/tasks/database_tasks.rb:476:in `block in each_current_configuration'
/usr/local/bundle/gems/activerecord-6.0.3.2/lib/active_record/tasks/database_tasks.rb:475:in `each'
/usr/local/bundle/gems/activerecord-6.0.3.2/lib/active_record/tasks/database_tasks.rb:475:in `each_current_configuration'
/usr/local/bundle/gems/activerecord-6.0.3.2/lib/active_record/tasks/database_tasks.rb:184:in `create_current'
/usr/local/bundle/gems/activerecord-6.0.3.2/lib/active_record/railties/databases.rake:39:in `block (2 levels) in <main>'
/usr/local/bundle/gems/bugsnag-6.11.1/lib/bugsnag/integrations/rake.rb:18:in `execute_with_bugsnag'
Tasks: TOP => db:create
(See full trace by running task with --trace)

even though user roles and databases already exist in postgresql

root=# \l
                                  List of databases
   Name    |  Owner   | Encoding |   Collate   |    Ctype    |   Access privileges
-----------+----------+----------+-------------+-------------+-----------------------
 postgres  | postgres | UTF8     | en_US.UTF-8 | en_US.UTF-8 | =Tc/postgres         +
           |          |          |             |             | postgres=CTc/postgres+
           |          |          |             |             | root=c/postgres
 root      | postgres | UTF8     | en_US.UTF-8 | en_US.UTF-8 |
 template0 | postgres | UTF8     | en_US.UTF-8 | en_US.UTF-8 | =c/postgres          +
           |          |          |             |             | postgres=CTc/postgres
 template1 | postgres | UTF8     | en_US.UTF-8 | en_US.UTF-8 | =c/postgres          +
           |          |          |             |             | postgres=CTc/postgres
(4 rows)

Why do I feel this software is the most difficult to install that I have ever used because it never installs successfully 😢

Then I try back to heroku build again, the problem is that now I can't log in after successful install, there isn't any message that appears besides the "error" message
Screenshot_2

Screenshot_3

Dependencies in Ubuntu install script don't work

Hey there. Nice project! I'm super hopeful here... I love that this is fully open.

I tried to install on Ubuntu droplet on Digital Ocean and ran into this when running the first script from here

bash <(wget -qO- https://raw.githubusercontent.com/techAPJ/install-rails/master/linux)

failure was this:

Installing Ruby 2.7.1 ...

/home/sysadmin/.rbenv/bin/rbenv: line 49: cd: /root: Permission denied
failed

Hope this helps because I REALLY want to try and support this project somehow. If we can get email into this hub too, wow....

Deploying Chaskiq on Subdomain

Currently, the routing constraints catches all subdomains and assumes to route to the knowledge base.

constraints(SubdomainOrDomain) do

However, this prevents deploying chaskiq on a subdomain.

Example: For my software, I am deploying to https://chaskiq.xxxx.com and https://help.xxxx.com

One solution could be a to leverage an environment variable to set the APP_SUBDOMAINS array in config/initializers/app_subdomains.rb

React Native app

Was thinking that it would be cool to have an iOS app, maybe something where you can just enter your api endpoint and access token, and the app connects to send and receive messages.

The only caveat would be push notifications

P.S.
I love that this is open sourced and will contribute where I can.

Unable to log in for the very First Time

Hi, I've deployed this product to Heroku. I have set the ADMIN_EMAIL and ADMIN_PASSWORD in the .env file and also I run db:seed command but I'm unable to log in to the platform. Can anyone help regarding this?

custom channels development

hey guys,
i am looking for documentation on how to develop my own custom channel integration, where can i find that?
+
how can i enable multiple channels from the same type ?
+
is multi tenancy / SAAS deployment spported ?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.