Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Apr 16 16:36

    mworrell on master

    Fix escape of floating point va… (compare)

  • Apr 16 10:02

    mworrell on master

    Fix ip2geo filter (compare)

  • Apr 15 12:56

    mworrell on master

    Add 'is_deletable' to m_comment. (compare)

  • Apr 15 10:53

    mworrell on master

    Fix session id usage for OAuth … (compare)

  • Apr 14 20:38
    michielklonhammer synchronize #2646
  • Apr 14 20:38

    michielklonhammer on l10n_master

    New translations zotonic.pot (D… (compare)

  • Apr 14 19:39

    mworrell on master

    Update Google Analytics for the… (compare)

  • Apr 14 18:58

    mworrell on cotonicsid

    (compare)

  • Apr 14 18:57

    mworrell on master

    Removed server generated sid, r… (compare)

  • Apr 14 18:57
    mworrell closed #2649
  • Apr 14 18:32
    mworrell synchronize #2649
  • Apr 14 18:32

    mworrell on cotonicsid

    Fix managed_props (compare)

  • Apr 14 18:30
    mworrell synchronize #2649
  • Apr 14 18:30

    mworrell on cotonicsid

    Fix a problem where rsc diff co… (compare)

  • Apr 14 18:18
    mworrell synchronize #2649
  • Apr 14 18:18

    mworrell on cotonicsid

    Fix dialyzer (compare)

  • Apr 14 13:48
    mworrell synchronize #2649
  • Apr 14 13:48

    mworrell on cotonicsid

    Fixes (compare)

  • Apr 14 13:32
    mworrell commented #2649
  • Apr 14 13:27
    mworrell milestoned #2649
heiheshang
@heiheshang
maybe you need to specify some variables on the page? I did the page myself, maybe I missed something
heiheshang
@heiheshang
mqtt_sessions:get_user_context(z_context:site(Context), Remote) return notfound,where to set client_id?
heiheshang
@heiheshang
new_user_context shows client_id,routing_id, but mqtt_sessions:get_user_context(z_context:site(Context), Remote) return notfound
Marc Worrell
@mworrell
I merged a fix for the routing-id, it might fix your issue.
heiheshang
@heiheshang
thanks
heiheshang
@heiheshang
what means zotonic_filehandler_compile:266 Could not find compile options, no recompile for '/opt/zotonic/_build/default/lib/zotonic_mod_sprtest/src/mod_sprtest.erl'
?
heiheshang
@heiheshang
tell me how you can turn on the json-rpc in zotonic?
Marc Worrell
@mworrell
Hi, you mean the API?
We don't have built-in support for JSON-RPC.
Looks like it could map to the MQTT topics though, looking at the syntax. Just wondering how much it would be used?
heiheshang
@heiheshang
i needed api jsonrpc
Marc Worrell
@mworrell
Where do you need it for?
Wondering if those JSON-RPC commands could just be mapped to the models (cq. model topics).
heiheshang
@heiheshang
different services access my service via jsonrpc
the model does not correspond to the standard
heiheshang
@heiheshang
i redid the controller_api
heiheshang
@heiheshang
How do you solve the problem of bulk content removal? The interface does not allow this
Marc Worrell
@mworrell
Re: JSON-RPC do you have an example of the kind of requests you do?
Re: bulk removal, would adding checkboxes to the admin lists fix that for you?
it would be cool to have a checkbox for deleting pages
Arthur Clemens
@ArthurClemens
A long time ago I wrote https://github.com/ArthurClemens/mod_bulk_commands
Not sure if it still works though.
Marc Worrell
@mworrell
Nice concepts - let's integrate that. I was thinking of a "select" modus - like you see in the iOS file interfaces.
Also maybe a pull-down with some commands per row to view/edit/delete/publish/unpublish, access to the quick edit dialog and for media download and/or open in new window.
Arthur Clemens
@ArthurClemens
It needs access validation, or provide it to admin only.
Marc Worrell
@mworrell
If something can't be deleted then we can also report that back?
Of course, if some pages are deleted then the paging is a bit off. Which might make it necessary to reload the list.
heiheshang
@heiheshang
tell me how to properly deploy my site? I wrote an ansible script, copied the site folder from the git, but the site does not appear, what should I do?
Jonathan
@steele232
Hi. I'm trying Zotonic for the first time; I've downloaded the latest release from Github (0.58.0) and I'm opting for the Docker section of the Getting Started page because I had some other difficulties trying to install. The Getting Started instructions are to run $ ./start-docker.sh but I don't see the file there so this command doesn't run. I don't see it anywhere in the directory and find start-docker.sh returns nothing. How should I try to run Zotonic in docker? What is normally in that file?
heiheshang
@heiheshang
which file do you want to see? docker run there, do you have docker composer installed?
Jonathan
@steele232
I see a docker-compose.yml file and I do have docker-compose installed. I'm only a little familiar with docker-compose but I'm pretty familiar with simple docker usage.
Jonathan
@steele232
I was able to run docker-compose up and I started getting somewhere and then it ended in an error. I'll have to try again tomorrow
heiheshang
@heiheshang
you need to set permissions on the directory, the user in the container is not the same as the user who launches docker.
Marc Worrell
@mworrell
Hi @steele232 and @heiheshang, the Docker file in the documentation refers to the "master", which we are releasing as 1.0a1 any time soon now. I have in fact a bit of trouble with that Docker file, it works splendidly (but very slow, it is Docker...) on macOS, but on Linux I run into a file permission problem.
Normally I am not using Docker. And just use kerl to switch between Erlang releases and use the local PostgreSQL on my machine.
With development on 0.x we are kind of stuck on OTP 21.3 as the newest release. This due to incompatibilities introduced in OTP 22 and having production systems on OTP < 21.
With master (1.x) we need OTP >= 22. I am using OTP 23.1 now in my development system.
heiheshang
@heiheshang
you need to create a zotonic group on the target machine and add your user to this group. Set permissions for the group. In docker, everything works for you under the zotonic user
I run all my projects in docker.
Marc Worrell
@mworrell
Just the same name for the group? Or also the same group-id and user-id as in the container?
Would be great if you can help me out on this. I was considering running the container as the local user that starts the container, or use some other tricks, that people wrote about this issue.
heiheshang
@heiheshang
group-id and user-id
user id =100 group id = 65533
Marc Worrell
@mworrell
That are the ids in the docker container?
And then you make your local user with the same ids?
heiheshang
@heiheshang
yes
heiheshang
@heiheshang
or use in docker-compose file user: "${UID}:${GID}"
UID=${UID} GID=${GID} docker-compose up
Marc Worrell
@mworrell
Ah, then the docker container is running as that user?
heiheshang
@heiheshang
container - yes, no zotonic. Scripts force user switch