-
Notifications
You must be signed in to change notification settings - Fork 568
How to Keep Your Code Private and Deploy Your Prototype for Free on Heroku
Kaelig Deloumeau-Prigent edited this page Oct 14, 2016
·
2 revisions
If you're working on some rather private or forward looking prototypes, we recommend keeping your code away from the public eye.
- Git
- A Heroku account (free)
- Heroku CLI (Command Line Interface)
In a terminal window, run:
git clone https://github.com/salesforce-ux/design-system-starter-kit.git
- Go to https://dashboard.heroku.com/apps
- Click New › Create new app
- Choose an app name (e.g. "your-app" will create your-app.herokuapp.com)
- Click Create App
- Follow instructions in the "Deploy using Heroku Git" section of the page
You should execute something like this:
cd design-system-starter-kit
heroku git:remote -a your-app
git push heroku master
- Go to your Heroku app dashboard
- Click Settings
- Click Reveal Config Vars
- Create 2 config vars:
USERNAME
andPASSWORD
with the values of your preference.
Next time you load your app, you'll be greeted with an authentication prompt.
Deploy your changes to Heroku using git:
git add .
git commit -m "Your message"
git push heroku master
Go to https://your-app.herokuapp.com, et voilà!