Giter VIP home page Giter VIP logo

multi-purpose-tg-bot's Issues

Improve docker deployment procees

Right now the process of deploying this bot on a server via docker will give you headaches and generally requires a lot of handwork.
Current deployment process:

  1. Commit your changes to this repo.
  2. Connect via SSH to your server.
  3. Do git fetch ; git pull.
  4. Merge env and appsettings.json files.
  5. Do docker-compose build ; docker-compose up.

I want this process to be easier and simpler:

  1. Build this repo (i.e. via some kind of CI or by hand, but without needing to merge settings files).
  2. Pull docker image.
  3. Deploy it on a server.

Those 3 steps could be automated by using CI, but maybe we can keep this project simple and just separate settings from code. Which we can do by moving whole solution (excluding docker-compose.yml, env, etc) to src/ folder. Or at least we can move appsettings.json file to the root of this repo and create env-example file, gitignoring original env.

What should be done first is described in previous paragraph:

  1. Move all settings files to the root of the repo.
  2. Add those files to the .gitignore file.

Create an example branch for docker deployment

Right now all the docker-related stuff is in the root of the master branch with all the code. I think files like docker-compose.yml and env-example should be moved to new example/docker branch that won't contain any code.

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.