forked from mldangelo/personal-site
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
16 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,8 +9,9 @@ My personal website. Built using Node.js, React, Express, React-Router, Hot Modu | |
[![Greenkeeper badge](https://badges.greenkeeper.io/mldangelo/mldangelo.svg)](https://greenkeeper.io/) | ||
|
||
### Dependencies: | ||
* node >= v6.0.0 | ||
* yarn >= v0.20.0 | ||
Tested with: | ||
* node >= v8.12.0 | ||
* yarn >= v1.10.0 | ||
|
||
### Installation: | ||
|
||
|
@@ -21,32 +22,22 @@ My personal website. Built using Node.js, React, Express, React-Router, Hot Modu | |
yarn | ||
``` | ||
|
||
2. Optionally configure nginx. Run: | ||
|
||
```bash | ||
sudo ln [root directory]/nginx/mldangelo.conf [nginx directory]/sites-enabled/mldangelo.conf | ||
sudo service nginx restart | ||
``` | ||
Note: HTTPS block should be removed if step 3 (below) is not followed. | ||
|
||
3. Optionally configure a SSL certificate using Certbot. See [here](https://certbot.eff.org/#ubuntutrusty-nginx) | ||
for installation and setup instructions. A cronjob such as: | ||
|
||
```bash | ||
0 0 1 * * sudo /home/ubuntu/certbot/certbot-auto renew --quiet --no-self-upgrade | ||
``` | ||
|
||
should be set to automatically renew the certificate in production. | ||
### Developing: | ||
1. ``` cp sample.env .env ``` and set values as appropriate. | ||
2. Run `npm run dev` and navigate to `<ip>:<port> (localhost:7999)`. | ||
|
||
### Running: | ||
### Deploying: | ||
This branch is configured for deployment with github pages. To deploy: | ||
1. Modify the `CNAME` file to reference your custom domain. | ||
2. Change `NODE_ENV` to `production` in `.env` | ||
3. Run `npm run deploy` | ||
4. Go to `https://github.com/[your github username]/personal-site/settings` and configure accordingly | ||
|
||
1. ``` cp sample.env .env ``` and set values as appropriate. | ||
<img" src="docs/gh-pages.png"> | ||
|
||
2. Run `npm run forever-start` and navigate to `<ip>:<port> (default=7999)`. | ||
5. Configure your domains DNS record. See https://help.github.com/articles/using-a-custom-domain-with-github-pages/ for more information. | ||
|
||
### Developing: | ||
1. Set `NODE_ENV=development` in `.env`. | ||
2. Run `npm run dev` | ||
Please feel free to reach out to me by filing an issue or at [email protected] for help configuring your project. | ||
|
||
### Contributors | ||
- [@mldangelo](https://github.com/mldangelo) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters