How to host Automatic on a VPS for free
Viaduct is a hosting service (PaaS) offering both paid and free vps instances. Their free tier is actually quite good and is all you need to host backpack.tf Automatic. You get 1 GB of disk space and 10 GB of bandwidth every month, which is more than enough. Creating an account doesn't even require a credit card, making it accessible to everyone.
First, make sure Automatic works on your PC. Viaduct will need your login details, and it's easier to do this locally.
*IMPORTANT*
Replace this in your package.json (Notepad is fine)
"steam": ">= 0.6.8"
with this
"steam": "0.6.8"
(remove >= )
Viaduct won't be able to host your application if you don't do this.
Steps:
1. Go to https://my.viaduct.io/signup?_uref=00aa61and create an account.
2. Confirm email etc. and log in at https://my.viaduct.io/login
3. Create a zip file of your backpack.tf-automatic folder (containing bot.js). If you use WinRAR, remember to tick ZIP and not RAR.
4. Go to https://my.viaduct.io/applications/new/zip(not accessible in the UI, you must use this link) and drag the file onto it. Wait for the application to start up.
5. Use the Node.js template and continue.
6. Pick a name and domain. The domain won't be used by automatic but try to name it something unique. You'll want to use node 0.12.
7. Tick the deploy button and continue. Ignore the error, we'll be fixing that soon.
8. Scroll down to "Add your first process" and click the button.
9. Enter the following command and save your process (scroll down):
Also, you might want to lower the startup check time to 5 to speed things up.
It should look like this now:
10. Go to your application's Settings, then General, and make sure the 'Sleep processes' box is ticked:
10. Click on the big "DEPLOY NOW" button in the header.
11. Select the first version and deploy your application. If you ever need to update your instance, just drag a new zip file onto the box.
You should be done now. If you want to see Automatic's logging, view your logs like so:
and then select web.1 to view its output. The page is live so you won't have to reload it.
If you want to close the Automatic process, delete its process (edit the process, scroll down and click delete) and redeploy the latest version.
And you're done. ez
- Zapperzz and rafiozol
- 2
24 Comments
Recommended Comments
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now