Git Product home page Git Product logo

piaas's People

Contributors

sohoffice avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

piaas's Issues

piaas app run with -t flag did not run sbt task in the background.

If we defined a sbt task, and start it with piaas app run -t. The sbt command will connect to incorrect tty and wait indefinitely. However, if we omit the -t flag, the sbt command can successfully run in the background.

Maybe we should fork a child to run the task ? We could terminate the forked child right after the task was executed, and tail from the main process.

Not sure whether sbt is the sole instance of such issue

Support rsync executable override per profile

I stumbled upon an interesting use case. I synced from my Macbook to a Windows VM. However, I find myself wanted to sync from this windows VM to a second location. The windows VM require wsl rsync to work, but my host doesn't. Obviously, a single executable section in the top-most level of piaasconfig.yml is not enough. The scenario looks like the below:

Host ---> Windows ---> 2nd Windows

It would be nice if we can override executable per profile.

Support remote shell override for rsync

rsync can benefit from an alternative remote shell, like for example using a control master ssh connection.

We should allow user to specify remoteShell under profiles > connection. This will be used as the -e parameter when invoking rsync. For example:

rsync -av -e '{{remoteShell}}' --exclude-from=.piaasignore --delete --copy-links . [email protected]:~/src

Control Master SSH Scenario:

  1. We could have opened a control master connection with ssh -nNf -o ControlMaster=yes -o ControlPath="$HOME/.ssh/.control-%L-%r@%h:%p" user@host
  2. Specify remoteShell as ssh -o 'ControlPath=$HOME/.ssh/control-%L-%r@%h:%p'
  3. The control master connection can be terminated with ssh -O exit -o ControlPath="$HOME/.ssh/.control-%L-%r@%h:%p" user@host

Run application in the background and redirect the logs to file.

Take Angular for example, using a remote machine to serve means we will have to run ng serve in the background. The process should not be terminated even if we closed the ssh session for whatever reason.

The application must redirect log to a file for issue investigation.

Move .piaas.d to home directory

.piaas.d, where pid and logs are kept, should be moved out of source directory for the following reasons:

  1. They are not exactly source codes.
  2. They may be wiped out by sync unless excluded in the ignore file.

Use github releases to manage new release file

At the moment, we're publishing to gh-pages branch. But github has advised us to use releases.

Github releases involves calling REST API, which I don't feel reasonable to operate by hand. We should use command line tools like this

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.