Skip to content

Commit

Permalink
chore: Prepare 0.1.5 release
Browse files Browse the repository at this point in the history
  • Loading branch information
sekunho committed Apr 2, 2023
1 parent 225d56c commit 8b08f35
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 15 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "emojied"
version = "0.1.4"
version = "0.1.5"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
Expand Down
32 changes: 20 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,34 +29,42 @@ yourself; sorry!

Here are the versions of the important ones:

- `rustc`: 1.58.1
- `cargo`: 1.58.0
- `postgresql`: 14.1
- `sqitch`: 1.1.0
- `tailwindcss`: 3.0.23
- `esbuild`: 0.14.27
- `typescript`: 4.6.2
- `openssl`: 1.1.1n 15 Mar 2022
- `rustc`: 1.67.1
- `cargo`: 1.67.0
- `postgresql`: 15.2
- `sqitch`: 1.3.1
- `tailwindcss`: 3.2.7
- `esbuild`: 0.17.14
- `typescript`: 4.9.5
- `openssl`: 3.0.8 (7 Feb 2023)

Everything else doesn't matter too much I think. You could probably just use
whatever version of `rust-analyzer` you have, for example.

However, if you _do_ have Nix 2.7.0 (with Flakes), you probably know how to
use it anyway. `nix develop` (or don't if you have `nix-direnv` already), and
dev away.

Oh, you also have to set up the database called `emojied_db` (locally).
dev away. You should probably also setup the PG server with `devenv up`, and
run the sqitch migration (see below) to avoid the hassle of setting up Postgres
manually. Otherwise, you need to set it up, and create a DB called
`emojied_development` for local dev stuff.

Once you've done whatever to get all the dependencies, you can do the ff:

```
sqitch deploy
PGPASSWORD=emojied sqitch deploy
# You can also do `cargo run` if you don't want to use `cargo-watch`.
PG__DBNAME="YOUR_DB_NAME_HERE" PG__HOST="localhost" PG__USER="YOUR_USER_HERE" PG__PORT="5432" A
PP__STATIC_ASSETS="./public" cargo watch -x run
```

or if you're using `nix`:

```
PGPASSWORD=emojied sqitch deploy
nix run
```

This should run a server in port `3000`, which you can access in http://localhost:3000.

Oh, you want to set it up for a prod server? But why? (continue reading)
Expand Down
2 changes: 1 addition & 1 deletion nix/modules/packages/emojied.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

(naersk-lib.buildPackage {
pname = "emojied";
version = "0.1.4";
version = "0.1.5";
root = ../../../.;
nativeBuildInputs = with pkgs; [ ];
buildInputs = with pkgs; [ openssl pkg-config ];
Expand Down

0 comments on commit 8b08f35

Please sign in to comment.