Code Monkey home page Code Monkey logo

now-redirect's People

Contributors

flybayer avatar ntwcklng avatar vdanchenkov avatar

Stargazers

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

Watchers

 avatar  avatar  avatar

now-redirect's Issues

Problem setting-up

Hello, there must something I do not understand because I can not get this to work.
I would like to redirect all traffic from mydomain.com to www.mydomain.com.

So I go to my app folder and type
now-redirect www.mydomain.com

It deploys MY app on https://mydomain-gfhsgtwezq.now.sh
But it says:
Requests to https://mydomain-gfhsgtwezq.now.sh/* will be redirected to http://www.mydomain.com/*
and this is not the case! There is no redirect.

I think the problem is that Instead of deploying your small nodejs file that does the redirect, it is deploying my app (which is current folder). I am using [email protected] and it seems that it is ignoring the custom path :/

Am I doing something wrong ?

Only solution I have now is deploying my app and then aliasing it to both domain:
now alias https://mydomain-gfhsgtwezq.now.sh mydomain.com
now alias https://mydomain-gfhsgtwezq.now.sh www.mydomain.com
which is working.

now-redirect broken w/ now 8.2.2

This is a very useful tool, however it appears something between now-redirect, now, or node has changed and the tool installed fresh is no longer working as expected.

I was able to work around this quickly by cloning locally and just deploying from the app/ directory directly, but I'm sure plenty of people will run into this issue and not know how to proceed.

In particular, in bin/now-redirect, where the child process is supposed to operate against the source's simple app/ directory, currently, the child now process is executing against the current working directory. Now then tries to deploy the current working directory instead of the desired app/ redirection deployment.

Mac OS Sierra v10.12.2
now --version 8.2.2
node --version v8.40

Thank you!

A big thank you for making this. It saved my behind, and I owe you a big thanks. That's all.

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.