-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Separate Server for Website and Uncomment #2
Comments
I originally intended the scripts/assets to be served by the Uncomment server, so it made sense to just use the |
Awesome, I just pulled the changes, going to tinker with it tonight but it may be a few days before I make any real progress, have to work tomorrow and sunday is fathers day. |
Got it! just had to: cd /uncomment
sudo npm install -g typescript
npm i --save-dev @types/node
tsc and the dist folder was created. |
ok gotta get to bed, I got the scripts compiled and the server configured and running without error. (my guess is I did not compile it correctly in the previous post, even though there were no errors.) I have the scripts on the website (count and embed) however I am seeing an error |
The scripts are compiled/bundled using Web pack, it should all work just by
running
```
npm install
npm run build
```
I wrote the readme with docker in mind (much quicker to get the server up
and running using docker), so I left out the build instructions. I'll try
to add this soon. I'll also try to add some more details about setting up
the server.
…On Sat, 18 Jun 2022, 10:26 Jake G, ***@***.***> wrote:
ok gotta get to bed, I got the scripts compiled and the server configured
and running without error.
I have the scripts on the website (count and embed) however I am seeing an
error:
[image: 2022-06-18_01-25-43]
<https://user-images.githubusercontent.com/106644/174429548-2beaac2d-1a42-430c-b66c-9bda535ab550.png>
—
Reply to this email directly, view it on GitHub
<#2 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AADHTNEW56IE7APW4VE33T3VPWB4JANCNFSM5Y733BGQ>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Well here is what I did so far, maybe it can save you some time. (I know most people like docker, but I am already running a different virtual environment): sudo apt-get install -y git curl gnupg2 build-essential libssl-dev pkg-config clang postgresql libpq-dev
curl --proto '=https' --tlsv1.2 https://sh.rustup.rs -sSf | sh
1
enter
sudo reboot
rustup update
rustc --version
git clone https://github.com/nielssp/uncomment
cd uncomment
## create and configure .env
npm install # did this from my workstation instead
npm run build # did this from my workstation instead
# copy dist folder into uncomment folder on server
cargo build
#cargo build --release
#cargo build --features postgres
#cargo build --release --features postgres
./target/debug/uncomment
#./target/release/uncomment |
I am trying to set this up in an environment where there are two servers, one for the website and one for the uncomment server.
I see (this), and from the readme this:
What I am wondering is how I can use the script locally on my website, and it still know how/where to connect to the uncomment server, maybe with a new host value? eg:
I can tell that it was probably not designed to do this, but before I dig in I wanted to get your thoughts on this.
The text was updated successfully, but these errors were encountered: