Skip to content

Commit

Permalink
improve deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
matallo committed Jan 11, 2016
1 parent 0adc70d commit 29e645d
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions COMMANDS.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,24 +3,15 @@
There are many commands available to help you build and test sites. Here are a few highlights to get started with.


## Retrieve documentation

Since the documentation for every component of CartoDB is distributed among each repository we need to pull them first before building the actual site. You can do this executing the following script:

```
./docs_build.sh
```


## Run locally

```
grunt serve
```

This will have Jekyll build the site, run a static server to listen on port 9001 (which you can now reach at [http://localhost:9001/](http://localhost:9001/)), and watch for changes to site files. Every change will cause Jekyll to rebuild the affected files.
This will have Jekyll build the site, run a static server, and watch for changes to site files. Every change will cause Jekyll to rebuild the affected files.

Also, you can run the docs locally as if it was on staging with `grunt serve --target=staging`
Also, you can run The Map Academy website locally as if it was on staging with `grunt serve --target=staging`


## Build & Optimize
Expand All @@ -30,3 +21,12 @@ grunt build
```

Build and optimize the current site, ready for deployment. This includes image, script, stylesheet and HTML optimization and minification.


## Deploy

```
grunt deploy --target=ENV
```

Compress assets and upload them to the corrsponding S3 bucket, as well as the HTML files generated by Jekyll.

0 comments on commit 29e645d

Please sign in to comment.