Giter Club home page Giter Club logo

Comments (5)

lucasdiedrich avatar lucasdiedrich commented on September 8, 2024 1

OK, going to make this after the upgrade.

from ojs.

lucasdiedrich avatar lucasdiedrich commented on September 8, 2024

Marc, adding PWD to the docs will be an awesome upgrade, i created an test branch i made some changeds at the docker-compose.yml.

You can test at: https://labs.play-with-docker.com/?stack=https://raw.githubusercontent.com/lucasdiedrich/ojs/test/docker-compose.yml

It seems that`s is working now, i just have to add the env variables again. Can you test it??

Going to look the other issue this afternoon. Thanks.

from ojs.

marcbria avatar marcbria commented on September 8, 2024

Thanks a lot Lucas.

Looks like PWD don't like variable expansion and you need to hardcode the variables. :-(

What about keeping a docker-compose.yml with variables as before (for development and production environments) and create a copy (stack.yml or if it works, demo.yml) with hardcoded vars, just for PWD?

I tested and now works better than before, because the full stack is build, but when you visit the url of the site shows a WSOD till timeout.

No clue about why it happens. I will review it next week or so. We are so close.

Thanks a lot for your work and time,
m.

from ojs.

lucasdiedrich avatar lucasdiedrich commented on September 8, 2024

Marc, there is a reasonable for not working with .env variable, as we are just pointing to the docker-compose.yml when PWD loads this file he doesn't know the existence of the .env file over the repository.

I created this file just to test that out, i'm going to rollback it and just remove the .env lines, i think its going to work then. I'm thinking about creating an examples folder and put this docker-compose files inside it, what do you think?

Thanks.

from ojs.

marcbria avatar marcbria commented on September 8, 2024

I was expecting some magic from PWD but yes, it makes a lot of sense.
An examples folder with "hardcoded variables" docker-compose is a perfect solution.

But please, think in this as a "feature request"... I mean, if I were you, I will focus on the new release upgrade instead of this. ;-)

Please, let me know if you need help or you want a PR.

Thanks!

from ojs.

Related Issues (20)

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.