Plugin for use with discourse docker image
Go to file
Guo Xiang Tan 00617a1fb5 Add frozen string literal comment to files. 2019-05-13 11:16:32 +08:00
.tx add pull_translations.rb 2017-11-15 11:16:23 -05:00
app Add frozen string literal comment to files. 2019-05-13 11:16:32 +08:00
assets DEV: upgrade jQuery to 3.4.1 (#54) 2019-05-06 18:20:33 +03:00
bin Add frozen string literal comment to files. 2019-05-13 11:16:32 +08:00
config Add frozen string literal comment to files. 2019-05-13 11:16:32 +08:00
lib/docker_manager Add frozen string literal comment to files. 2019-05-13 11:16:32 +08:00
manager-client DEV: upgrade jQuery to 3.4.1 (#54) 2019-05-06 18:20:33 +03:00
public/images Use a font-awesome image instead. 2018-04-25 13:01:12 +08:00
spec Add frozen string literal comment to files. 2019-05-13 11:16:32 +08:00
.gitignore Ember upgrade to 3.6.1 (#49) 2019-01-03 09:21:34 +03:00
.rubocop.yml Inherit rubocop config from discourse repo 2018-12-03 00:38:35 +01:00
Gemfile Add frozen string literal comment to files. 2019-05-13 11:16:32 +08:00
Gemfile.lock add pull_translations.rb 2017-11-15 11:16:23 -05:00
LICENSE Update Readme and add License 2014-06-28 00:31:12 +05:30
README.md Ember upgrade to 3.6.1 (#49) 2019-01-03 09:21:34 +03:00
compile_client.sh FIX: progress bar and upgrade log on subfolder installs 2017-01-12 14:09:58 -05:00
dev_server DEV: upgrade Ember to 3.8 (#53) 2019-04-15 12:59:11 +10:00
docker-manager.sublime-project FIX: progress bar and upgrade log on subfolder installs 2017-01-12 14:09:58 -05:00
plugin.rb Add frozen string literal comment to files. 2019-05-13 11:16:32 +08:00

README.md

Docker Manager

This plugin works with the Discourse docker image. It allows you to perform upgrades via the web UI and monitor activity in the container.

Development Notes

  • Install node.js and yarn
  • Clone this repo to desired folder path
  • In console, from folder path do cd manager-client, yarn install
  • Create a symlink for this folder in your local Discourse instance "plugins" folder (eg. path/to/your/discourse_folder/plugins/discourse_manager)
  • Make sure your Discourse instance is running locally at port 3000 and you are logged in as Admin

The Client App

  • Install the client app dependencies:
    • cd manager-client
    • yarn install
  • Make sure your local Discourse instance is running at port 3000
  • Run ./dev_server which will run ember server for you with proxy to your local Discourse instance
    • If that gives errors, you may need to start your Discourse rails server like this: bundle exec rails s -b 127.0.0.1
  • JUST open up a browser to port 4200 and you're off to the races!

The client application is built using Ember CLI.

To create a compiled version for distribution, run ./compile_client.sh to compile the site and move it into the proper directories.

Running tests

  • Ruby

    • Run RAILS_ENV=test bundle exec rake plugin:spec[docker_manager] in your discourse directory.
  • JS Tests

    • Run ember s in the /manager-client directory
    • Open up your favorite browser and head to http://localhost:4200/testsand you should see all passing/failing tests

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

License

MIT