Comments (8)
Like I said in the README:
Unfortunately, due to the wide variety of possible deployment platforms, it is impossible to provide specific directions for any particular deployment strategy or PAAS. There are many tutorials online that can help you get a Node application up and running on your favorite PAAS.
I haven't used Linode before, so unfortunately I couldn't provide too much direct help with that beyond linking to their docs and providing some general steps for Docker.
If you've just got Docker running but not deployed the image I believe you're at the step "Build a Docker Image from the Dockerfile" in this document: https://www.linode.com/docs/guides/docker-images-containers-and-dockerfiles-in-depth/
The Dockerfile from this repo is what you would need for that step. Since I haven't provided any pre-built images, you have to clone this Git repo to your Linode box and then run something like:
docker run --name switchblade -d switchblade
You'll also have to pass the run command your environment variables for your database connection, or use a .env file that you add to the repo's root level. The environment variables are defined in the README.
from switchblade.
Cheers. I appreciate it. I think I was about halfway there. I'll let you know how it goes.
from switchblade.
It's me again. ok. I scrapped the docker route and just spun up a node instance on linode. I'm at this point here...
but I feel like an idiot as I can't figure out how to get to it in the browser. I've tried the ip:500, but no go..
I'm not sure what the fuck I'm doing wrong. Any suggestions or ideas?
from switchblade.
I'm not sure how Linode handles this but on Heroku they automatically set a PORT environment variable, which causes the app to start on that port, and then they forward that port to port 80, the regular HTTP port.
If Linode does something similar you just need to point to the IP or domain name, not to a specific port.
If Linode isn't automatically handling port config for you that's the one thing you'll have to configure to make it reachable. You just have to figure out how to forward traffic coming into the Linode box on 80 (or 443 with SSL) to port 500.
You'll probably need to use Nginx for that if it's not already setup.
from switchblade.
I found this video which seems to have instructions for Nginx config at around the 34 minute mark if you need some Linode-specific instructions! https://youtu.be/sD8X4CApdpo
from switchblade.
Cheers for that mate. I'll give it a shot here in a bit.
from switchblade.
Whoot!! we have JSON output at initial GET! Thanks for your help
from switchblade.
Awesome! Glad to hear it's working!
from switchblade.
Related Issues (3)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from switchblade.