Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Joshua Tyree
    @Josh_Tyree_twitter
    Our operating parameters dictate that all pages / sites that we build and host must be able to have a fully-loaded time at a max of 1s. Part of that is solved by indexing data and lazy-loading all content outside of the first viewport, heavy caching implementations, and extremely optimized VPSs/Kubernetes configs. All these extra steps create problems with continuous integration / deployment because the margin for error if not done perfectly is too high. So being able to deploy to all nodes in a cluster simultaneously without issues would be a good start at fixing our CI/CD pipeline.
    Peter Salomon
    @patternpoints
    I have no clue about running locomotivecms in larger scales honestly. So, sorry, no experiences to share here from my side. But its an interesting scenario that you are dealing with. About how many nodes are we talking and what are the issues you are experiencing with simultaneous deployments?
    Alex Wellnitz
    @alexohneander
    Hello, how can I read the metafields from my Gem?
    I have built an Instagram Client and now I want to read the apikey from the metafields
    Peter Salomon
    @patternpoints
    @alexohneander „gem“ ?
    @alexohneander But i guess this answers your question: https://doc.locomotivecms.com/docs/site-metafields
    Alex Wellnitz
    @alexohneander

    @patternpoints I built an Instagram client as Ruby-Gem.
    I linked this Gem to my Locomotive page.

    The Ruby-Gem serves as a plugin and provides a Liquid-Drop, with these drop I can display my Instagram Postings.
    In this gem I would like to access the metafields. If I see it right, this only works with Coal?

    ProgrammerGuy
    @guy_programmer_twitter
    I'm trying to deploy a project to multiple sites. Lets say I have 100 sites and 1 project. All 100 sites are identical, except the content for each is different. I made a change to the project, added a section. Thus I would have to deploy the changes to all sites.... I don't want to 'wagon deploy' 100 times lol is there away that i can deploy to all sites at once ?
    Nikolay Bonev
    @DonKoko
    I dont think wagon has such a feature
    you can make a simple ruby script that loops over the your deploy file and runs wagon deploy for each
    Alexander Ryhlitsky
    @alexander-rykhlitskiy
    Hello everybody
    I've just updated my locomotive engine from 2 to 4. Before update I could edit every page right inside of locomotive admin panel. But now every page, except the main one, says "No editable elements found".
    Can it be related to migrations scripts? Is there a way to make all the content in all pages editable?
    Thanks a lot in advance
    Nikolay Bonev
    @DonKoko

    Anybody had the issue with the page editor crashing with the follwing error in browser console:

    TypeError: can't access property "settings", e is undefined

    so i cant edit the page anymore
    but it renders just fine on the frontend
    Benoit Molenda
    @proxygear
    My quick guess is that you have a section that miss some settings in the definition.
    https://doc.locomotivecms.com/docs/json-definition
    Nikolay Bonev
    @DonKoko
    That was not the issue. Settings were there, but the section attributes were missing from the html
    so thats why it was giving the error
    Benoit Molenda
    @proxygear
    the section attributes ? in the top meta data ?
    Nikolay Bonev
    @DonKoko
    no in the actual html
    Benoit Molenda
    @proxygear
    I see
    Asad Dhamani
    @dhamaniasad
    Hello
    My engine is stuck on "Waiting for the preview pane to be ready"
    Pete Fealey
    @peterfealey

    `undefined method 'sections_content' for #<Locomotive::Coal::Resource:0x00007feda1f3f890>

    I'm having trouble syncing content from a staging site to local - The staging site/local site has no sections. Any idea?

    Petri Heikura
    @p3tricom_twitter

    Hello all again. I've tried to get started with the new way of building Loco-sites with Sections. We're running latest master both server side and locally. I've followed the documentation on doc.locomotivecms.com regarding sections. I wanted to learn the basics with Sections and therefor I've tried to follow the examples that follow the generated section. These are the steps I've done:

    • Created new fresh site in Loco production server administration.
    • Cloned down the site to my computer.
    • I noticed that /app/assets with necessary javascript-files were not created (even with generate section-command), so I ran the command bundle exec wagon generate webpack.
    • I created new section wagon generate section test.
    • I replaced all sample-file-references in app/views/sections/test.liquid with an existing image-file test.png.
    • I added {% sections_dropzone %} to index.liquid with example sections_dropzone_content as instructed in section-comment.
    • I deployed all to production server.

    When I ran the server (wagon) locally, it works and shows expected data on index.liquid page/section.

    When I access editor on production server for index.liquid (or 404.liquid) it just hangs and "Waiting for the preview pane to be ready" to finish. No errors in console or network. I have no access points domains yet and no redirects activated.

    What have I've missed? Thank you in advance.

    Chris Dyer
    @dyerc
    @p3tricom_twitter @dhamaniasad I just came to the Gitter room to see if anyone else was experiencing this error. I've submitted a Github issue with what I found the problem to be and a workaround of sorts locomotivecms/engine#1371
    Petri Heikura
    @p3tricom_twitter
    @dyerc Thanks for feedback. I hope your ticket will be solved soon. :)
    Petri Heikura
    @p3tricom_twitter
    @dyerc FYI: I added a host/domain to the site on production server (tried with and without redirect to first domain) but I still get the same behaviour with "Waiting for the preview pane to be ready" when trying to edit pages.
    Chris Dyer
    @dyerc
    @p3tricom_twitter @dhamaniasad just had the same error again myself today and updated the issue with a write-up of what the problem ended up being this time. It's probably not the exact issue you're having but it might help
    jacoblyw
    @jacoblyw

    Hello,
    Is there a way to bind the backend to a particular domain?

    This so that admin.example.com/locomotive will serve up the backend but mysite.example.com/locomotive will not.

    I was looking around in rails routing, but haven’t found routing based on the domain.

    Cristian Livadaru
    @lcx
    Hi everyone. Is there some way to cache data and access it via locomotive / liquid?
    I have a huge list of companies that are being loaded and served as a javascript variable.
    There are two things I don't like about this, it needs to load the data every time the page is accessed
        <script type="text/javascript">
          var companies = [
            {% for company in contents.company %}
              {"name": "{{ company.name }}", "url": "{% path_to company %}"}{% unless forloop.last %},{% endunless %}
            {% endfor %}
          ];
        </script>
    the second thing I don't like about this, I have a huge JS file I'm sending to the browser.
    What I would need is a way to send an ajax request for the typeahead to work and dynamically fetch the data from some cache.
    I would know how to do this in rails, but not sure if it can be accomplished via liquid / locomotive
    Cristian Livadaru
    @lcx
    the other way I could come up with a solution is to create some intermediate app in rails that fetches and caches this stuff from locomotive via API and the typeahead implementation would request if from there. Not really the nicest way.
    Sander Schekman
    @SuperSchek
    Hey everyone, I am having to dive back into a (very) old instance of engine running on Heroku. It uses the mlab plugin which will cease to exist soon. I migrated the DB to Atlas successfully. The issue is that when I update the MONGO_URL in the config vars of my app, I get an error:
    Bad URI: mongodb+srv://my-name:my-pass@my-atlas-cluster.mongodb.net/heroku_db Invalid scheme. Scheme must be 'mongodb' or 'mongodb+srv' MongoDB URI must be in the following format: mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]
    As far as I can see, I am adhering to the proper format
    Any ideas?
    James
    @thejame

    @SuperSchek Once you have your DB up at Atlas, use the link to the cluster, not the URI that is shown in the Atlas config. I got it to work using this:

    mongodb+srv://<USER>:<PASSWORD>@<CLUSTER ID>.mongodb.net/<DATABASE>?retryWrites=true&w=majority

    James
    @thejame
    Just curious @SuperSchek, what did you use instead of Heroku? I'm 100% fed up with their setup right now- with the Atlas conversion I am having so many problems.
    Nikolay Bonev
    @DonKoko
    @thejame I am really curious what issues you are having with the Atlas conversion. I have 3 different engines on heroku, running different versions of Loco and the migration was so easy and smooth, i couldnt believe it. If you ask me its a huge improvement compared to mlab.
    arzvaak
    @arzvaak
    Hey everyone, new here, I was wondering if with Locomotive CMS I can set up a service like shopify? Where we have master admins and then admins of a website? So a multi-site kind of service as to say? Where I can support different themes which people can choose and set up. Is this possible? Sorry if this is a bad question, I haven't worked with any CMS or anything till now and have been limited to normal rails applications only.
    Luke Grayson
    @greyskin

    Hi @arzvaak - there are different levels of administration. The documentation doesn't address it but it's described here: locomotivecms/engine#1286. You'll notice there appear to be a couple of "issues" where certain roles have access to things they shouldn't but in general it works.

    Regarding themes, you'll have to set up your own or I believe @manuchap has a bunch he has set up.

    Are you wanting to resell Locomotive CMS? There are a range of pricing plans available: https://www.locomotivecms.com/pricing (or you can set up your own instance and host it yourself as it is open source). We use the hosted option so we don't have to do the server-side stuff. It works really well for us and @did (the author) is super helpful. If server-side isn't your thing I'd highly recommend going this route.

    arzvaak
    @arzvaak
    @greyskin I would want to go for the pricing plans as well, but I don't know how economical would it be to get it due to the pageview limits. I wanted to ask if I could set up a website (something like shopify?) And let people buy some plans so they could host their own novel/book website where they could publish their books, so something like wattpad, but I was wondering if I could let them login through the dashboard through my site, make them sign up and have their own domain. And then choose their template (something like wattpad or webnovel) and publish their own stuff? Is it possible to do this with locomotive or do I need to hardcode everything?
    arzvaak
    @arzvaak
    Also are there any more extensive guides on the CMS? Or some tutorials for more complex use cases?
    Luke Grayson
    @greyskin
    @arzvaak ah ok I think I understand what you're wanting: you'd create a site on Locomotive CMS and your users would log into a front-end page on that site and then be able to purchase a website, select a template, etc and that process would create a site for them on Locomotive CMS under your account. I'm not sure this is possible but I suspect @did could confirm. I suggest you PM him directly and ask the question. There is an API available which may be useful for this scenario or there may be some functionality that I'm unaware of.
    Nikolay Bonev
    @DonKoko
    Has anyone done text compression and assets caching policy for a self hosted engine on heroku? I am wondering how you made it work.
    Alex Wellnitz
    @alexohneander

    Hi guys, can someone help me?
    I have Locomotive productive running and would like to use Redis as a cache. I have actually set everything I need but nothing shows up in the cache. What could be the reason for this?

    This is my config:

    config.cache_store = :redis_cache_store, { url: ENV['REDIS_URL'] }
    REDIS_URL = redis://redis:6379/0