46 lines
2.8 KiB
Plaintext
46 lines
2.8 KiB
Plaintext
<div class="container">
|
|
{{^auth}}
|
|
<p> Sorry you need to have a valid authentification that prove that you are the major of this town to go ahead</p>
|
|
{{/auth}}
|
|
{{#auth}}
|
|
<div class="row">
|
|
<h4>Current setup</h4>
|
|
<p>Your current town name: <b>{{townId}}</b> is link to nation: <b>{{nationId}}</b> and accessible with domain <b>{{#dns}}{{.}}{{/dns}}</b>.</p>
|
|
{{#devtown}}
|
|
<p> <b>devfarm</b> is a dev town that cannot be chain, to start dev means:</p>
|
|
<ul>
|
|
<li> install process made http://devfarm-ants available on your machine the /adminapi/www/adminapx/index_en.html to manage this dev town</li>
|
|
<li>if not working, check that your /etc/hosts contain 127.0.0.1 devfarm-ants</li>
|
|
<li>start the api in apxtrib folder $ yarn dev to allow manager adminapx to act on this trib</li>
|
|
<li>Restart nginx: sudo systemctl restart nginx</li>
|
|
</ul>
|
|
<p>Then you can dev in apxtrib to send your release to the project leader.</p>
|
|
<p>You can dev some app as a tribe level into /devfarm-ants see menu Mayor's Town/Manage Tribes to create a dev tribe. You can unzip a tribe into a folder for debuging or dev with real backup data.</p>
|
|
{{/devtown}}
|
|
{{^mayorId}}
|
|
<p>
|
|
This town is not own by a mayor, anyone can use a pagan account to tell that he is owning this, so please,
|
|
{{#auth}} you are authenticate under alias: {{alias}} <button class="btn btn-primary" onclick="towns.owntown();">Own this town</button>
|
|
{{/auth}}
|
|
{{^auth}} you have to be authenticat with an alias to own this town. go to Pagan / create login logout and authentify yourself and come back here.
|
|
{{/auth}}
|
|
{{/mayorId}}
|
|
{{#owner}}
|
|
<h4> Own & chain a town</h4>
|
|
{{#devtown}}
|
|
<p>You need to change town name (by default it is for dev "devfarm") by running on serveur as sudoer user: </p>
|
|
<code>node apxtrib.js nationId:nationRequested townId:nameNotalreadyUse dns:domainToAccessTown </code>
|
|
<p>Come back here.</p>
|
|
{{/devtown}}
|
|
{{^devtown}}
|
|
<p> As owner you({{alias}}) can give the ownership of this town to an other alias. Be carefull when you click on this button you lose all your accessright on this town.</p>
|
|
<div class="input-group mb-3">
|
|
<input type="text" class="form-control" placeholder="Give alias to take the ownership" aria-label="New owner alias" aria-describedby="button-chgown">
|
|
<button class="btn btn-outline-secondary" type="button" id="button-chgown">Give him the role on this town</button>
|
|
</div>
|
|
|
|
{{/devtown}}
|
|
{{/owner}}
|
|
</div>
|
|
{{/auth}}
|
|
</div> |