This is a small capistrano app that's meant to help with the deployment of config files for q2 servers.
- Ruby
- Bundler
Assuming you already have ruby and bundler installed:
- Install capistrano gem:
bundle install #install capistrano
- Setup your
config/deploy.rb
andconfig/deploy/production.rb
accordingly.
NOTE: I'm not gonna teach you how to use capistrano here, so go to the official docs: http://capistranorb.com/
All the relevant files for the q2 server are inside the q2base
folder.
Since I'm managing an action server, most of my files are inside the action
folder, but this may as well be some other mod folder.
When the files get synced they follow the structure inside the q2base
folder. Meaning that the q2base
folder acts as a representation for your q2 root folder.
cap -T # Lists all available tasks
# deploy files and link them
cap production deploy
# start the watcher for the gameserver launcher
cap production server:start_watcher
All the tasks can be changed inside the lib/capistrano/tasks
folder.
NOTE:
The files inside q2base/shared
should be uploaded manually to <deploy_folder>/shared
, they are there just as examples, but they contain sensitive passwords that should not be committed to any repository.
Use your favorite ftp client for this.
- Fork it.
- Do your thang.
- Push a PR.
- Ping me.
Bug reports and pull requests are welcome on GitHub at https://github.com/elfenars/q2_server_query.
The gem is available as open source under the terms of the MIT License.