Can we run run two plugins at a time by using atlas-run command

I installed confluence 5.6.5 and created a plugin named Adddraftbuton then I go into root folder where it is created and run atlas-run then it confluence on localhost:1990 and Iam able to see the plugin.

Than I created another plugin named macro and went into the root folder and run atlas-run and again confluence started on localhost:1990 and Iam able to see macro.

IF I need to see both draftbutton and macro do I need to run atlas-run command from which folder?Can I see both at a time?

I have created all these plugins from tutorials.

Another doubt is I installed confluence on port 8090 but when I do custom code changes are taking place and starting confluence at 1990.Do I need to run atlas-run everytime to see my plugin on conluence GUI?

Please answer 

2 answers

There are several options.  atlas-run starts up a Confluence server on a specific port (1990 by default). So you could run two Confluence servers if you changed the port, you can see params here: https://developer.atlassian.com/docs/developer-tools/working-with-the-sdk/command-reference/atlas-run

but you don't want to do that! smile

 

yellow-star What makes the most sense in your case (and how I develop) is to run a single Confluence server from another directory (like a directory called 'atlassian-servers') is using the command:  

atlas-run-standalone --product confluence

This will download, install, configure and start up a Confluence server.  Its one of the best commands in the SDK!

Once that is done continue your development in each of your other directories. Then you can use atlas-cli + the pi command will install your AddOn directly to the server.  Or atlas-package and then atlas-install-plugin

 

The problem with running atlas-run in the directory where you are developing is that sometimes you want to blow away the "target" directory for a completely clean build. But when you do that the entire Confluence must again be downloaded (even if local) and installed before starting up. 

 

 

Another option to consider is:

  1. Launch Confluence from one your projects (using atlas-run as usual). That plugin will be auto-installed.
  2. Build the other plugin with atlas-package, then deploy the plugin JAR using UPM (uploading the JAR to Confluence).

It has the advantage that you don't a third Confluence.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Nov 29, 2018 in New to Confluence

How to use Confluence Cloud for stakeholder management

Most of us don’t need much convincing that stakeholder management is important. It just makes sense that keeping everyone in-the-know on projects and assigning clearly defined roles is key to having ...

1,157 views 4 6
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you