Git Product home page Git Product logo

pixelatedrp1.0's Introduction

Pixelated1.0

Main repository for PixelatedRP FiveM server.

Development

  1. git clone --recurse-submodules [email protected]:thetaintedtailor/PixelatedRp1.0.git
  2. cd PixelatedRP1.0
  3. git update-index --assume-unchanged server-data\dev_server.cfg
  4. Edit server-data\dev_server.cfg and change the line that says set mysql_connection_string "server=xxx;database=xxx;userid=xxx;password=xxx" to the correct DB connection values for your development server (talk to mailbox if you need DB access).

Workflow

  1. Ensure your local master is up to date. First, git checkout master. Then, git pull origin master
  2. Create a new local branch for your work: git checkout -b my-feature-branch.
  3. Do your work while periodically committing changes on your branch.
  4. Push your branch to the repository: git push origin my-feature-branch.
  5. When your work is finished, open a pull request against master.
  6. Deploy your branch to staging so it can be tested by the QA team.
  7. Wait for the QA team to test your work and for another developer to review and approve your pull request.
  8. Once the QA team has signed off and the PR is approved, it can be merged and deployed.

During this entire process, ensure that your tickets remain up to date and in the correct column on the project tracking board.

Submodules

We use submodules to manage development across multiple server resources. For example, the pixelated_radio resource is its own git repo. If you're not actively developing any of the resources that are kept in submodules, you have nothing to worry about. When you git pull, you'll get all of the changes you need. However, if you start to edit the files in any resource that is a submodule, that's when you need to take care.

To see a list of all directories in the project which are submodules: git config --file .gitmodules --name-only --get-regexp path. If you're not making changes in any directory listed there, you don't need to read any further.

Working in Submodules

TODO: Coming soon

Deploying

Staging

We have a staging server for testing all changes (with the assistance of the QA team) before things get deployed to production. Getting code onto the staging server is a simple process:

  1. Open a pull request against master with your proposed changes.
  2. Locally (on your command line), git checkout staging
  3. git pull origin staging
  4. git merge my-branch
  5. get push origin staging

The act of pushing the staging branch will automatically trigger a deploy to the staging server and immediately restart it.

If you need to manually restart the staging server, ssh into it and use sudo systemctl restart fivem.

To view the logs on the staging server: sudo journalctl -u fivem. Use shift+G to immediately scroll to the bottom. Add the -f flag to the journalctl command to tail the log file.

Production

TODO: Coming soon

pixelatedrp1.0's People

Contributors

kc2693 avatar thetaintedtailor avatar openmailbox avatar katalystgames avatar housing37 avatar wertycx avatar allupinthat avatar acaeli avatar crohlfs avatar

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.