怎么安装chat sdk,想要搭建skygear 服务


#1


这个怎么安装
文档里并没有详细说明


#2

Regarding deployment of Skygear-Server, please refer to the guide: https://docs.skygear.io/guides/advanced/server/

Chat is a plugin that should be connected with skygear-server.

You may also look at the docker-compose.yml of chat for minimal setup: https://github.com/SkygearIO/chat/blob/master/docker-compose.yml


#4

I have modify docker-compose.yml
then restart skygear-server, but “/chat/create_conversation” still not work
Is there something else not be setting ?


#5

time=“2018-02-07T17:17:11+08:00” level=info msg=“Starting Skygear Server(v1.3.3)…”
time=“2018-02-07T17:17:11+08:00” level=debug msg=“Current version of database schema is “94ffce762644”.” logger=skydb
time=“2018-02-07T17:17:11+08:00” level=debug msg=“Database schema “94ffce762644” matches the latest schema “94ffce762644”.” logger=skydb
time=“2018-02-07T17:17:11+08:00” level=debug msg=“Querying remoteColumnTypes user” logger=skydb
time=“2018-02-07T17:17:11+08:00” level=debug msg=“Executed SQL with sql.QueryRowx” args="[user app_myapp]" executionCount=1 logger=skydb sql="\nSELECT c.oid\nFROM pg_catalog.pg_class c\n LEFT JOIN pg_catalog.pg_namespace n ON n.oid = c.relnamespace\nWHERE c.relname = $1\n AND n.nspname = $2"
time=“2018-02-07T17:17:11+08:00” level=debug msg=“Executed SQL successfully with sql.Queryx” args="[18110]" error="" executionCount=2 logger=skydb sql="\nSELECT a.attname,\n pg_catalog.format_type(a.atttypid, a.atttypmod)\nFROM pg_catalog.pg_attribute a\nWHERE a.attrelid = $1 AND a.attnum > 0 AND NOT a.attisdropped"
time=“2018-02-07T17:17:11+08:00” level=debug msg=“Executed SQL successfully with sql.Queryx” args="[app_myapp user]" error="" executionCount=3 logger=skydb sql=“SELECT kcu.column_name, ccu.table_name FROM information_schema.table_constraints AS tc JOIN information_schema.key_column_usage AS kcu ON tc.constraint_name = kcu.constraint_name JOIN information_schema.constraint_column_usage AS ccu ON ccu.constraint_name = tc.constraint_name WHERE constraint_type = ‘FOREIGN KEY’ AND tc.table_schema = $1 AND tc.table_name = $2”
time=“2018-02-07T17:17:11+08:00” level=debug msg=“Cache remoteColumnTypes user” logger=skydb
time=“2018-02-07T17:17:11+08:00” level=debug msg=“Using cached remoteColumnTypes user” logger=skydb
time=“2018-02-07T17:17:11+08:00” level=debug msg=“Executed SQL successfully with sql.Queryx” args="[app_myapp user]" error="" executionCount=4 logger=skydb sql="\nSELECT\n t.relname AS table_name,\n i.relname AS index_name,\n array_to_string(array_agg(a.attname), ‘,’) AS column_names\nFROM\n pg_class t,\n pg_class i,\n pg_index ix,\n pg_attribute a,\n pg_namespace ns\nWHERE\n t.oid = ix.indrelid\n AND i.oid = ix.indexrelid\n AND ns.oid = t.relnamespace\n AND ns.oid = i.relnamespace\n AND a.attrelid = t.oid\n AND a.attnum = ANY(ix.indkey)\n AND t.relkind = ‘r’\n AND ix.indisunique = TRUE\n AND ns.nspname = $1\n AND t.relname = $2\nGROUP BY\n ns.nspname,\n t.relname,\n i.relname;"
time=“2018-02-07T17:17:11+08:00” level=info msg=“Subscription Service listening…”
time=“2018-02-07T17:17:11+08:00” level=debug msg=“Executed SQL successfully with sql.Exec” args="[2018-02-06 17:17:11.101880525 +0800 CST]" error="" executionCount=1 logger=skydb rowsAffected=0 sql=“DELETE FROM “app_myapp”.”_device" WHERE token IS NULL AND last_registered_at < $1"
time=“2018-02-07T17:17:11+08:00” level=info msg=“Supported plugin transports: exec, http”
time=“2018-02-07T17:17:11+08:00” level=info msg=“Listening on :3000…”
time=“2018-02-07T17:17:11+08:00” level=info msg=“Wait for all plugin configurations” count=0 logger=plugin
time=“2018-02-07T17:17:11+08:00” level=debug msg=“Hub running 0xc420052d80” logger=pubsub
time=“2018-02-07T17:17:11+08:00” level=debug msg=“Hub running 0xc420220940” logger=pubsub
time=“2018-02-07T17:17:11+08:00” level=info msg=“pq/listener: Received an event” event=0 logger=skydb
time=“2018-02-07T17:17:11+08:00” level=info msg=“pq/listener: Listening to record_change…” logger=skydb
time=“2018-02-07T17:17:17+08:00” level=debug msg=“GET /chat/create_conversation” logger=router
time=“2018-02-07T17:17:17+08:00” level=debug msg="------ Header: ------" logger=router
time=“2018-02-07T17:17:17+08:00” level=debug msg=“Connection: [keep-alive]” logger=router
time=“2018-02-07T17:17:17+08:00” level=debug msg=“Cache-Control: [max-age=0]” logger=router
time=“2018-02-07T17:17:17+08:00” level=debug msg=“Accept-Encoding: [gzip, deflate]” logger=router
time=“2018-02-07T17:17:17+08:00” level=debug msg=“Accept-Language: [zh-CN,zh;q=0.9,ja;q=0.8]” logger=router
time=“2018-02-07T17:17:17+08:00” level=debug msg=“User-Agent: [Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.132 Safari/537.36]” logger=router
time=“2018-02-07T17:17:17+08:00” level=debug msg=“Upgrade-Insecure-Requests: [1]” logger=router
time=“2018-02-07T17:17:17+08:00” level=debug msg=“Accept: [text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,/;q=0.8]” logger=router
time=“2018-02-07T17:17:17+08:00” level=debug msg="------ Request: ------" logger=router
time=“2018-02-07T17:17:17+08:00” level=debug msg=“0 bytes of request body” logger=router
time=“2018-02-07T17:17:17+08:00” level=debug msg="------ Response: ------" logger=router
time=“2018-02-07T17:17:17+08:00” level=debug msg="{“result”:{“status”:“OK”}}\n" logger=router
time=“2018-02-07T17:17:17+08:00” level=debug msg=“GET /favicon.ico” logger=router
time=“2018-02-07T17:17:17+08:00” level=debug msg="------ Header: ------" logger=router
time=“2018-02-07T17:17:17+08:00” level=debug msg=“Referer: [http://192.168.75.67:3000/chat/create_conversation]” logger=router
time=“2018-02-07T17:17:17+08:00” level=debug msg=“Accept-Encoding: [gzip, deflate]” logger=router
time=“2018-02-07T17:17:17+08:00” level=debug msg=“Pragma: [no-cache]” logger=router
time=“2018-02-07T17:17:17+08:00” level=debug msg=“Cache-Control: [no-cache]” logger=router
time=“2018-02-07T17:17:17+08:00” level=debug msg=“User-Agent: [Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.132 Safari/537.36]” logger=router
time=“2018-02-07T17:17:17+08:00” level=debug msg=“Accept: [image/webp,image/apng,image/,/;q=0.8]" logger=router
time=“2018-02-07T17:17:17+08:00” level=debug msg=“Accept-Language: [zh-CN,zh;q=0.9,ja;q=0.8]” logger=router
time=“2018-02-07T17:17:17+08:00” level=debug msg=“Connection: [keep-alive]” logger=router
time=“2018-02-07T17:17:17+08:00” level=debug msg="------ Request: ------" logger=router
time=“2018-02-07T17:17:17+08:00” level=debug msg=“0 bytes of request body” logger=router
time=“2018-02-07T17:17:17+08:00” level=debug msg="------ Response: ------" logger=router
time=“2018-02-07T17:17:17+08:00” level=debug msg="{“result”:{“status”:“OK”}}\n" logger=router
time=“2018-02-07T17:17:19+08:00” level=debug msg=“GET /chat/create_conversation” logger=router
time=“2018-02-07T17:17:19+08:00” level=debug msg="------ Header: ------" logger=router
time=“2018-02-07T17:17:19+08:00” level=debug msg=“Connection: [keep-alive]” logger=router
time=“2018-02-07T17:17:19+08:00” level=debug msg=“User-Agent: [Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.132 Safari/537.36]” logger=router
time=“2018-02-07T17:17:19+08:00” level=debug msg=“Upgrade-Insecure-Requests: [1]” logger=router
time=“2018-02-07T17:17:19+08:00” level=debug msg="Accept: [text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,
/;q=0.8]" logger=router
time=“2018-02-07T17:17:19+08:00” level=debug msg=“Accept-Language: [zh-CN,zh;q=0.9,ja;q=0.8]” logger=router
time=“2018-02-07T17:17:19+08:00” level=debug msg=“Cache-Control: [max-age=0]” logger=router
time=“2018-02-07T17:17:19+08:00” level=debug msg=“Accept-Encoding: [gzip, deflate]” logger=router
time=“2018-02-07T17:17:19+08:00” level=debug msg="------ Request: ------" logger=router
time=“2018-02-07T17:17:19+08:00” level=debug msg=“0 bytes of request body” logger=router
time=“2018-02-07T17:17:19+08:00” level=debug msg="------ Response: ------" logger=router
time=“2018-02-07T17:17:19+08:00” level=debug msg="{“result”:{“status”:“OK”}}\n" logger=router
time=“2018-02-07T17:17:19+08:00” level=debug msg=“GET /favicon.ico” logger=router
time=“2018-02-07T17:17:19+08:00” level=debug msg="------ Header: ------" logger=router
time=“2018-02-07T17:17:19+08:00” level=debug msg=“Referer: [http://192.168.75.67:3000/chat/create_conversation]” logger=router
time=“2018-02-07T17:17:19+08:00” level=debug msg=“Accept-Language: [zh-CN,zh;q=0.9,ja;q=0.8]” logger=router
time=“2018-02-07T17:17:19+08:00” level=debug msg=“Connection: [keep-alive]” logger=router
time=“2018-02-07T17:17:19+08:00” level=debug msg=“Pragma: [no-cache]” logger=router
time=“2018-02-07T17:17:19+08:00” level=debug msg=“User-Agent: [Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.132 Safari/537.36]” logger=router
time=“2018-02-07T17:17:19+08:00” level=debug msg="Accept: [image/webp,image/apng,image/
,/;q=0.8]” logger=router
time=“2018-02-07T17:17:19+08:00” level=debug msg=“Accept-Encoding: [gzip, deflate]” logger=router
time=“2018-02-07T17:17:19+08:00” level=debug msg=“Cache-Control: [no-cache]” logger=router
time=“2018-02-07T17:17:19+08:00” level=debug msg="------ Request: ------" logger=router
time=“2018-02-07T17:17:19+08:00” level=debug msg=“0 bytes of request body” logger=router
time=“2018-02-07T17:17:19+08:00” level=debug msg="------ Response: ------" logger=router
time=“2018-02-07T17:17:19+08:00” level=debug msg="{“result”:{“status”:“OK”}}\n" logger=router
time=“2018-02-07T17:17:20+08:00” level=debug msg=“GET /chat/create_conversation” logger=router
time=“2018-02-07T17:17:20+08:00” level=debug msg="------ Header: ------" logger=router
time=“2018-02-07T17:17:20+08:00” level=debug msg=“User-Agent: [Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.132 Safari/537.36]” logger=router
time=“2018-02-07T17:17:20+08:00” level=debug msg=“Accept: [text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,/;q=0.8]” logger=router
time=“2018-02-07T17:17:20+08:00” level=debug msg=“Accept-Language: [zh-CN,zh;q=0.9,ja;q=0.8]” logger=router
time=“2018-02-07T17:17:20+08:00” level=debug msg=“Accept-Encoding: [gzip, deflate]” logger=router
time=“2018-02-07T17:17:20+08:00” level=debug msg=“Connection: [keep-alive]” logger=router
time=“2018-02-07T17:17:20+08:00” level=debug msg=“Cache-Control: [max-age=0]” logger=router
time=“2018-02-07T17:17:20+08:00” level=debug msg=“Upgrade-Insecure-Requests: [1]” logger=router
time=“2018-02-07T17:17:20+08:00” level=debug msg="------ Request: ------" logger=router
time=“2018-02-07T17:17:20+08:00” level=debug msg=“0 bytes of request body” logger=router
time=“2018-02-07T17:17:20+08:00” level=debug msg="------ Response: ------" logger=router
time=“2018-02-07T17:17:20+08:00” level=debug msg="{“result”:{“status”:“OK”}}\n" logger=router
time=“2018-02-07T17:17:20+08:00” level=debug msg=“GET /favicon.ico” logger=router
time=“2018-02-07T17:17:20+08:00” level=debug msg="------ Header: ------" logger=router
time=“2018-02-07T17:17:20+08:00” level=debug msg=“User-Agent: [Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.132 Safari/537.36]” logger=router
time=“2018-02-07T17:17:20+08:00” level=debug msg=“Referer: [http://192.168.75.67:3000/chat/create_conversation]” logger=router
time=“2018-02-07T17:17:20+08:00” level=debug msg=“Accept-Encoding: [gzip, deflate]” logger=router
time=“2018-02-07T17:17:20+08:00” level=debug msg=“Accept-Language: [zh-CN,zh;q=0.9,ja;q=0.8]” logger=router
time=“2018-02-07T17:17:20+08:00” level=debug msg=“Connection: [keep-alive]” logger=router
time=“2018-02-07T17:17:20+08:00” level=debug msg=“Pragma: [no-cache]” logger=router
time=“2018-02-07T17:17:20+08:00” level=debug msg=“Cache-Control: [no-cache]” logger=router
time=“2018-02-07T17:17:20+08:00” level=debug msg=“Accept: [image/webp,image/apng,image/,/*;q=0.8]” logger=router
time=“2018-02-07T17:17:20+08:00” level=debug msg="------ Request: ------" logger=router
time=“2018-02-07T17:17:20+08:00” level=debug msg=“0 bytes of request body” logger=router
time=“2018-02-07T17:17:20+08:00” level=debug msg="------ Response: ------" logger=router
time=“2018-02-07T17:17:20+08:00” level=debug msg="{“result”:{“status”:“OK”}}\n" logger=router


#6

skygear-server is not docker install,Skygear is configure via environment,how can i use chat plugin?


#7

What are your environment variable setting of skygear-server and chat?


#8

Thank you for your reply, I’ve already deployed the server.:handshake: