Code Monkey home page Code Monkey logo

Comments (2)

robfig avatar robfig commented on May 13, 2024

Good point -- I used zip because it is "natively" supported on windows (and I recall the API to write zip files is more pleasant). Also, doing bash run.sh instead of ./run.sh doesn't seem too bad.

On the other hand, any Windows developers using go probably have some kind of MinGW / Cygwin situation, which would provide them with tar as well.

Sounds like a good change to make.

from revel.

stapelberg avatar stapelberg commented on May 13, 2024

Re: using bash run.sh:

I am deploying all my stuff using systemd, where you specify an absolute path to the binary you want to run. In my case that is /opt/piksku/run.sh, which is much clearer than /usr/bin/bash /opt/piksku/run.sh.

Another thing I’ve noticed is that the timestamps of the files are all wrong (e.g. "-rw-r--r-- 1 root root 482 1985-08-14 00:00 app.conf"). Is that an oversight or another implication of using zip files? It might be bad for the Last-Modified HTTP mechanism, e.g. when you edit a file on the production server (it’s a no-no, but people probably still occasionally do it), then later edit it locally with different changes and deploy a new package. The client would not get the new file in that situation.

from revel.

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.