Coder Social home page Coder Social logo

Comments (4)

HolgerHees avatar HolgerHees commented on July 18, 2024

Hi,

thanks for your feedback.

I made some changes to the documentation. Is this now more helpful?

There is also no need for --extra-vars "target=production. The deployment detects the type of deployment automatically with the server ip. This means. If the server IP matches production_ip it will deploy the production setup. If the server IP matches staging_ip it will deploy the staging setup. This is more safe, because it prevents you from deploying staging on production :-)

from smartserver.

imaginator avatar imaginator commented on July 18, 2024

Thanks @HolgerHees. Am I correct to assume that you run with two copies of the repo:

  • one locally on a laptop for the Vagrant setup and,
  • one on the server for production?
    Then it checks the host IP to work out which to run?

Is there/would it make sense to just have one repo (on laptop) with the option to deploy to the remote server?

from smartserver.

HolgerHees avatar HolgerHees commented on July 18, 2024

Yes, this works too, if you modify the server.ini as described in my changed wiki page.

If you want to deploy local staging and remote production i would recommend to have two server.ini files like

server_local.ini and server_production.ini

from smartserver.

imaginator avatar imaginator commented on July 18, 2024

right - makes sense. I see you have most roles tagged so I'm not too worried about speed when just deploying using --tags. Thanks for the documentation updates.

from smartserver.

Related Issues (15)

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.