Install Plume on Windows a complete guide #82
Labels
No labels
bug
dependencies
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: plume/documentation#82
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Until I figure out my password (to upload my SSH and GPG keys), I will save the guide here.
Compile Plume on Windows
My specific setup:
C:\Extra
C:\Plume
Outline:
Requirements
C:\Extra\ssl
(or wherever you installed OpenSSL NOTE: this is not to the bin folder, it must be to root!)C:\Extra\LLVM\bin
(or wherever you installed LLVM to)Check and Balances
Launch Git Bash by right clicking on your desktop and choosing "Git Bash Here". The rest of the commands will be run from this console unless otherwise stated.
rustc --version
cargo --version
choco --version
openssl version
If you get any Not Found errors, make sure that your folder paths are correct in your environment. Once everything returns a version, you may proceed.
Building and Compiling
git clone https://github.com/Plume-org/Plume.git
cd Plume
cargo +stable install diesel_cli --no-default-features --features sqlite --version '=1.4.0' --verbose
NOTE - you may get an error similar to this:
If you do, go to the "Making SQLite3.lib" section, else continue.
cargo install cargo-web&&cargo web deploy -p plume-front --release
cargo install --no-default-features --features sqlite --path .
If you get an error here, go to the "Making SQLite3.lib" section step 5/6, else continue.
cargo install --no-default-features --features sqlite --path plume-cli
NOTE: in order to use the Windows Task Scheduler to start/stop, you need a full file path to database file with forward slashes... Backslashes will result in errors.
diesel migration run
plm search init
plm instance new
plm users new --admin -n "adminusername" -N "Human Readable Admin Name" -b "Biography of Admin here" -p hackmeplease
You should be ready to start testing!
Error Checking and Testing
plume
ROCKET_SECRET_KEY=
is filled in. You may useopenssl rand -base64 32
to generate a valid key.plume
Service Setup
Once everything is working, you may be annoyed by having to always open a command prompt to start Plume. We can configure it to start on boot via Task Scheduler.
Reverse Proxy using IIS 8.5
Note: I have yet to get this to work with a subdirectory. So, if your domain is https://mydomain.com, it can only work there and not at https://mydomain.com/plume as far as I am aware. If anyone figures this out, please let me know!
If you need to use a subdirectory, you can create a Server Farm called Plume, with a server of localhost, and a http port of 7878 and follow these steps:
^plume$|^plume/(.*)
where plume is the subdirectory you want to use.Making SQLite3.lib
choco install sqlite
cd C:\ProgramData\chocolatey\lib\SQLite\tools
"C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Auxiliary\Build\vcvarsall.bat" x86_amd64
"C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Auxiliary\Build\vcvarsall.bat" x86_amd64
"C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x86_amd64
lib /MACHINE:x64 /def:sqlite3.def /out:sqlite3.lib
C:\Users\%USERNAME%\.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib\rustlib\x86_64-pc-windows-msvc\lib
"C:\Users\%USERNAME%\.rustup\toolchains\nightly-2020-01-15-x86_64-pc-windows-msvc\lib\rustlib\x86_64-pc-windows-msvc\lib"
Don't want to compile from source? Try this.
Will be added to docs via this.