https://twill.io logo
Join Discord
Powered by
# ❓questions
  • i

    ifox

    06/08/2021, 7:31 AM
    on mobile so that might be wrong, but I think thats what you're looking for
  • d

    domihagen

    06/08/2021, 8:09 AM
    @User works fine!
  • s

    Shiftless

    06/08/2021, 8:12 AM
    @User you are my hero. Thank you for helping and i have to say that moving to discord was a huge step up towards your community. i love it.
  • w

    wicky

    06/08/2021, 9:40 AM
    Hey guys, what do you use for deploying your projects? I'm curious 🙃 We use https://github.com/deployphp/deployer Only problem now, since we have upgraded our local environment / and server environment version to PHP8, this package seems deprecated. I'm trying to use the beta version of it but there are still many issues with it.
  • d

    domihagen

    06/08/2021, 9:42 AM
    We work with BitBucket and BitBucket-Pipelines, where we use Docker-Images.
  • i

    ifox

    06/08/2021, 9:44 AM
    It depends on the project/client. We use Forge a lot, but also work with Docker, Envoy, Ansible, Envoyer, simple Bash scripts sometimes. Also CI on GitLab or GitHub.
  • d

    domihagen

    06/08/2021, 9:44 AM
    @User u could just deploy with rsync
  • d

    domihagen

    06/08/2021, 9:44 AM
    That´s what i do in my old WordPress project
  • d

    domihagen

    06/08/2021, 9:45 AM
    AEnterprise/rsync-deploy@v1.0
  • i

    ifox

    06/08/2021, 9:46 AM
    assuming coming from Deployer they need something more robust. Rsync is not going to solve the deploy flow itself, and which command needs to run in which order.
  • i

    ifox

    06/08/2021, 9:49 AM
    oh you mean as part of a CI workflow ok
  • w

    wicky

    06/08/2021, 9:51 AM
    haha rsync is part of the deployment, but its more then that.
  • w

    wicky

    06/08/2021, 9:54 AM
    something else; What about the containerization? Anybody using docker in production? We only use it for our local development environment but we've been thinking of using it for our production environment as well, less hassle with updates etc..
  • i

    ifox

    06/08/2021, 9:57 AM
    some of our clients do. On AWS Elastic Beanstalk, on Azure, some even on premises.
  • d

    domihagen

    06/08/2021, 10:03 AM
    Yes, we use Docker on Production (same image as DEV just without xdebug). Hosted in AWS with Elastic Container Service, RDS and ElastiCache (Redis).
  • w

    wicky

    06/08/2021, 10:03 AM
    cool! thanks guys, I'mma gonna look into it, lets see if there something comparable on digitalocean! 🙂
  • i

    ifox

    06/08/2021, 10:46 AM
    we're also starting to use Laravel Vapor @wicky. On Digital Ocean, you could use App Platform: https://try.digitalocean.com/app-platform
  • w

    wicky

    06/08/2021, 11:36 AM
    App platform seems interesting! Not sure if gitlab is fully supported!
  • w

    wicky

    06/08/2021, 11:37 AM
    nvm: https://www.digitalocean.com/blog/introducing-gitlab-integration-for-digitalocean-app-platform/
  • d

    Dmi3yy

    06/09/2021, 8:17 AM
    - Work on local in Docker - for stage use DO VPS with CyberPanel https://marketplace.digitalocean.com/apps/cyberpanel litespeed work faster then nginx or apache ) - prod depends on what resources the client has
  • u

    user

    06/09/2021, 9:47 AM
    Hi there, new to Twill and quite new to Laravel as well. I try to get my content via slug - I have found the "forSlug" method but don't really know how to use it. I guess I need a repository? I miss a working sample app to just copy paste some things and figure it out by playing around with it - it is hard to skip around in the videos and get every important piece
  • i

    ifox

    06/09/2021, 9:49 AM
    Hi @User the code for the YouTube videos is here: https://github.com/area17/made-with-twill-tutorials
  • i

    ifox

    06/09/2021, 9:50 AM
    https://github.com/area17/made-with-twill-tutorials/blob/5f4da53a98eecc1ba2fee5b74985ec997a5a230b/app/Http/Controllers/ProjectController.php#L24
  • u

    user

    06/09/2021, 9:53 AM
    very helpful - thanks!
  • d

    Dmi3yy

    06/09/2021, 10:18 AM
    Not work preview: protected $moduleName = 'programs'; where i need put my view ? try: - resources/views/programs/show.blade.php - resources/views/program/show.blade.php - resources/views/site/program/show.blade.php - resources/views/site/programs/show.blade.php - resources/views/site/programs.blade.php` get error: - Your submission could not be validated, please fix and retry if add 'frontend' => [ 'views_path' => '', ], have: Previews have not been configured on this Twill module, please let the development team know about it.
  • i

    ifox

    06/09/2021, 10:21 AM
    by default
    views_path
    is
    site
    , so it would expect your view at
    resources/views/site/program.blade.php
  • i

    ifox

    06/09/2021, 10:22 AM
    See https://github.com/area17/twill/blob/580faa474057a816dfaf7d873b3eba6c728872c0/src/Http/Controllers/Admin/ModuleController.php#L603
  • u

    user

    06/09/2021, 10:23 AM
    documentation for preview: https://twill.io/docs/#revisions-and-previewing
  • i

    ifox

    06/09/2021, 10:24 AM
    thanks @User, I see that we are missing to note that by default the view name is the singular module name
  • i

    ifox

    06/09/2021, 10:25 AM
    we explain how to change it and where it looks by default, but we say that it is using the module name, not it's singular version
1...232425...484Latest