This commit is contained in:
@@ -82,6 +82,7 @@ namespace qbridge.Controllers
|
||||
if (DiscoveryDoc == null)
|
||||
{
|
||||
return Content($"<h1>Error - Unable to fetch Discovery document from QuickBooks Online</h1>Cannot proceed");
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -1,45 +0,0 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
namespace qbridge.Controllers
|
||||
{
|
||||
[Route("api/[controller]")]
|
||||
[ApiController]
|
||||
public class ValuesController : ControllerBase
|
||||
{
|
||||
// GET api/values
|
||||
[HttpGet]
|
||||
public ActionResult<IEnumerable<string>> Get()
|
||||
{
|
||||
return new string[] { "value1", "value2" };
|
||||
}
|
||||
|
||||
// GET api/values/5
|
||||
[HttpGet("{id}")]
|
||||
public ActionResult<string> Get(int id)
|
||||
{
|
||||
return "value";
|
||||
}
|
||||
|
||||
// POST api/values
|
||||
[HttpPost]
|
||||
public void Post([FromBody] string value)
|
||||
{
|
||||
}
|
||||
|
||||
// PUT api/values/5
|
||||
[HttpPut("{id}")]
|
||||
public void Put(int id, [FromBody] string value)
|
||||
{
|
||||
}
|
||||
|
||||
// DELETE api/values/5
|
||||
[HttpDelete("{id}")]
|
||||
public void Delete(int id)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
30
notes.txt
30
notes.txt
@@ -10,3 +10,33 @@ If that works then plan and institute a publishable solution.
|
||||
- So QBridge is only required for the initial authorization process after which QBOI can operate using the refresh token scheme until that expires at which point QBOI can simply redirect to the QBridge again
|
||||
|
||||
|
||||
|
||||
***********************
|
||||
DEPLOYMENT qboauth.ayanova.com
|
||||
***********************
|
||||
1) CLEAN out /publish folder (used by all netcore utils)
|
||||
|
||||
|
||||
2) PUBLISH
|
||||
publish command line from C:\data\code\qbridge folder:
|
||||
|
||||
//this will build a release version which is what we use on the server now
|
||||
dotnet publish -c Release -o ./../publish/
|
||||
|
||||
|
||||
//if need a debug version
|
||||
dotnet publish -o ./../publish/
|
||||
|
||||
3) COPY
|
||||
Copy over to production server, only need the .dll and the wwwroot folder contents,
|
||||
remember not to delete the folders on the server only replace their contents because there are file permissions set
|
||||
Backup the database
|
||||
|
||||
4) Delete any test data local here
|
||||
|
||||
|
||||
Restart the service on the server:
|
||||
systemctl status kestrel-qboauth.service
|
||||
systemctl start kestrel-qboauth.service
|
||||
systemctl stop kestrel-qboauth.service
|
||||
|
||||
|
||||
Reference in New Issue
Block a user