Code Monkey home page Code Monkey logo

sciencenewsresearch-back's Introduction

How to deploy?

You just commit and push your code to deploy branch. But be careful not to commit and merge your database and setting file (db.sqlite3, cq_backend/settings.py) If you don't know how to do that precisely, just do like below

In case in your own branch,

    git add .
    git reset HEAD db.sqlite3
    git reset HEAD cq_backend/settings.py
    git commit -m "your commit message"
    
    git checkout deploy
    git merge <your branch name> --no-ff
    git push origin deploy

After that, login to server using

    ssh -i <your/pem file path/name.pem> [email protected]
    cd /srv/ScienceNewsResearch-back

command on your terminal. You can download name.pem if you are authorized user of above server. And then, just pull remote origin/deploy source by

    git pull

What if I change my model or make some migrations?

If you change your model and migrate correctly, there must be some new files in cq/migrations. It means that after you pull source code from remote, you also should apply migrations to server's database. So after pull source with above command,

    source /srv/ScienceNewsResearch-back/v2env/bin/activate
    cd /srv/ScienceNewsResearch-back/
    python manage.py migrate

sciencenewsresearch-back's People

Contributors

chaht01 avatar eunyoung4444 avatar jean4599 avatar

Watchers

 avatar  avatar  avatar

Forkers

eunyoung4444

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.