🚀 Production | 👾 Development | 📺 Video Material | 🏆 Support | 🔨 Issues | 🆘 Help |
---|---|---|---|---|---|
insane.pw | insane.pink | youtube.com/insanj | patreon.com/insanj | github.com/insanj | contact |
Google Cloud | Github Pages | Youtube | Patreon | Github |
bundle install
(install Bundler) npm start
(bundle exec jekyll serve
) to see your development sitenpm run build
(bundle exec jekyll build
) to get a production ready sitenpm run youtube
(node insane_sync.js
) to create a new post from the latest insane.jpg youtube videojekyll build --destination docs && gcloud app deploy
which both generates a static site for Github Pages and Google CloudNOTE: insane.pw uses the barber-jekyll theme
lookup your steam username and get the identifier in the steamID64 format (mine is 76561198017375926
). steamidfinder.com works well for this
build a url using the following format:
http://api.steampowered.com/ISteamUser/GetPlayerSummaries/v0002/?key=<API_KEY>&steamids=<STEAM_ID>
parse the JSON response to extract the important info displayed below:
{"response":
{"players":
[{
"lastlogoff":1541446073,
"profileurl":"https://steamcommunity.com/id/insanj/",
"avatarfull":"https://steamcdn-a.akamaihd.net/steamcommunity/public/images/avatars/8f/8f80c9dae4338b1c83ed5e4b3a0da663e0d51b14_full.jpg",
"personastate":1,
"timecreated":1259700378,
"gameextrainfo":"Tom Clancy's Rainbow Six Siege",
"gameid":"359550",
"loccountrycode":"US"
}]
}
}
🎉 render and ship it! great documentation is here for all the API metadata responses
NOTE: 🎉 the current deployment uses this plugin! check out the app.yaml and _config.yml, which both include very important details
sudo nohup docker daemon -H tcp://0.0.0.0:2375 -H unix:///var/run/docker.sock &
)Dockerfile
that will run automatically once your app.yaml
has env: custom
:
```dockerfileFROM gcr.io/google_appengine/ruby COPY . /app/ RUN bundle install
RUN bundle exec jekyll serve --host=216.239.36.21
### 🍎 Ruby App
1. clone this repository (or create your own jekyll-based repo)
2. create a new project in the Google Cloud Console and [a new Ruby app in the App Engine section](https://console.cloud.google.com/appengine/)
3. add a new custom domain (if desired) in the [settings area](https://console.cloud.google.com/appengine/settings/domains/add?project=insanepw-220417)
4. update the advanced dns records of your domain name (which can be bought through Google, Namecheap, etc) to add the A and CNAME records, which look something like this:
A @ 216.239.32.21 AAAA @ 2001:4860:4802:32::15 CNAME www ghs.googlehosted.com
5. install the [gcloud sdk](https://cloud.google.com/sdk/?hl=en_US) on your local machine and run `gcloud init` to setup a new configuration for the project you've just made
6. run `gcloud app deploy` which will upload and serve your files (make sure the `_config.yml` and `app.yaml` are setup to your liking). the default config looks like this:
```yaml
runtime: ruby
env: flex
entrypoint: bundle exec jekyll serve
NOTE: certain config values are extremely important to hosting a jekyll server, such as the 3 listed above in the
app.yaml
, and theexcludes: [vendor]
line in the_config.yml
, the crux of the issue reported here
gcloud compute firewall-rules create default-allow-jekyll --allow tcp:4000 --target-tags jekyll --description "allow jekyll traffic on port 4000"
gcloud auth login
jekyll build && gsutil -m rsync -d -r _site gs://<BUCKET_URL>.com
, which will upload and serve your files (make sure the _config.yml
and app.yaml
are setup to your liking)_config.yml
or (2) run jekyll build --destination docs
master
or your docs
directory