Skip to content

Commit

Permalink
Merge pull request #129 from neonexus/master
Browse files Browse the repository at this point in the history
Reworded README.
  • Loading branch information
neonexus authored Apr 22, 2024
2 parents dd3676f + cab1901 commit 71eec86
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 16 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

# [v5.3.2](https://github.com/neonexus/sails-react-bootstrap-webpack/compare/v5.3.1...v5.3.2) (2024-04-22)
### Features

* Reworded the guide a bit, so it didn't sound so repetitive.
* Updated `fixted`.

## [v5.3.1](https://github.com/neonexus/sails-react-bootstrap-webpack/compare/v5.3.0...v5.3.1) (2024-04-22)
### Features

Expand Down
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -646,28 +646,28 @@ Save it as a ["deploy key"](https://docs.github.com/v3/guides/managing-deploy-ke

#### Clone your repo

Now that you have the server's public key saved in your repo, you should be able to clone your repo on the remote server:
Once you have the server's public key saved in your repo manager, you should be able to clone your repo on the remote server:

```shell
git clone git@github.com:USERNAME/REPO.git myapp
```

#### Make sure dependencies work

Now, you'll want to `cd myapp`, and `npm install`.
Next, you'll want to `cd myapp`, and `npm install`.

Now, before you can actually start the server for a dry-run, you need to decide how you are going to store the server's credentials (user/pass for datastores and the like). It is recommended you use
Before you can actually start the server for a dry-run, you need to decide how you are going to store the server's credentials (user/pass for datastores and the like). It is recommended you use
the [environment variables](#environment-variables), but it is also possible to run the [interactive setup](#interactive-setup), and generate a `local.js`.

#### Give it a spin

You should now be able to `sudo npm run lift:prod` (recommended for all remote environments, even DEV). `sudo` is needed on Amazon Linux, because it requires ROOT permissions to open ports.

If everything is working as intended... congrats (or so you thought)! Now that you have everything working; it's time to get the server to update / rebuild / start itself.
If everything is working as intended... congrats (or so you thought)! Now that you have everything working, it's time to get the server to update / rebuild / start itself.

#### Final stretch

Now you need to decide how you are going to have the `tmux.sh` script run on startup. The easiest way would be to just install `cronie` (for the use of `crontab`):
Next up, you need to decide how you are going to have the `tmux.sh` script run on startup. The easiest way would be to just install `cronie` (for the use of `crontab`):

```shell
sudo yum install cronie
Expand All @@ -683,21 +683,21 @@ Start said service:
sudo systemctl start crond.service
```

Now edit the `crontab` to run the script at `@reboot`:
Edit the `crontab` to run the script at `@reboot`:

```shell
@reboot cd myapp; ./tmux.sh
```

#### Have you tried turning it off and on again?

Now force it to restart, and the instance should automatically lift the server.
Force the instance to restart, and it should automatically lift the server inside of TMUX.

```shell
sudo reboot
```

Now re-login to the instance. You should be able to `tmux attach` and see the Sails console.
After reconnecting to the instance, you should be able to `tmux attach` and see the Sails console.

Once you've verified everything works, you can use `./tmux.sh myapp status` / `./tmux.sh myapp start` / `./tmux.sh myapp stop` / `./tmux.sh myapp restart` (but you don't have to).

Expand Down
12 changes: 6 additions & 6 deletions package-lock.json

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

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sails-react-bootstrap-webpack",
"version": "5.3.1",
"version": "5.3.2",
"description": "A glass-box starter framework that grows with you. Built on proven and reliable tech like Sails, React, Bootstrap & Webpack.",
"keywords": [
"sails",
Expand Down Expand Up @@ -49,7 +49,7 @@
"favicons": "7.2.0",
"favicons-webpack-plugin": "6.0.1",
"file-loader": "6.2.0",
"fixted": "4.2.4",
"fixted": "4.2.5",
"html-webpack-plugin": "5.6.0",
"mini-css-extract-plugin": "2.9.0",
"mocha": "10.4.0",
Expand Down

0 comments on commit 71eec86

Please sign in to comment.