Git Product home page Git Product logo

mina-nginx's People

Contributors

anulman avatar hbin avatar jhoelzel avatar twe4ked avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

mina-nginx's Issues

command with `sudo` always hang

such as mina nginx:reload, mina nginx:stop actions, they need input the password to run, but it never prompt, just hanging;

if I add set :execution_mode, :system to the deploy file, these actions works well;but when I run mina nginx:print, it reports errors

 mina nginx:print
sh: line 39: echo "-----> Loading rbenv"
export RBENV_ROOT="$HOME/.rbenv"
export PATH="$HOME/.rbenv/bin:$PATH"
if ! which rbenv >/dev/null; then
  echo "! rbenv not found"
  echo "! If rbenv is installed, check your :rbenv_path setting."
  exit 1
fi
eval "$(rbenv init -)"
echo '


upstream koob {
server unix:///home/deploy/site/koob/shared/tmp/puma.sock fail_timeout=0;
}

server {
listen 80 default deferred;
server_name kbook.wenghuaedu.com
root /home/deploy/site/koob/current/public;

location ^~ /assets/ {
  gzip_static on;
  expires max;
  add_header Cache-Control public;
}

try_files $uri/index.html $uri @koob;
location @koob {
  proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  proxy_set_header Host $http_host;
  proxy_redirect off;
  proxy_pass http://koob;
}

error_page 500 502 503 504 /500.html;
client_max_body_size 4G;
keepalive_timeout 10;
}
': No such file or directory
 !     Run Error

what's wrong with my config?

Gem outdated.

mina-nginx was resolved to 0.0.3, which depends on
mina (~> 1)

Mina > 1.0 + other changes

Hi @hbin โ€” needed to implement nginx in mina for a project I'm working on and stumbled on your repo. I like your work; it was minimal, flexible, and easy to read.

Made a couple changes while dealing with plugin issues to further satisfy our flow. Will be publishing them shortly; let me know if you'd like a PR back into the project. TL;DR:

  • Added nginx:install task, which copies the template to the user's repo's lib/mina/templates dir;
  • Added flexible defaults to the template, e.g. having server_name fall back to domain if not set;
  • Rm'ed :parse & :link tasks in favor of a comprehensive install in :setup
  • Added :print task, to satisfy the preview functions parse was helpful for (runs locally)
  • Updated the README with details, obvs

Lmk if a PR makes sense? Also, any thoughts on :install vs. :init for the new task name?

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.