Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update README.md #1641

Merged
merged 5 commits into from
Jun 15, 2016
Merged

Update README.md #1641

merged 5 commits into from
Jun 15, 2016

Conversation

dbkr
Copy link
Member

@dbkr dbkr commented Jun 14, 2016

To reflect the fact that you can now sensibly deploy from a package (ie. be able to configure the app). Make the first thing be downloading a prebuilt package so people who only read the first part don't end up running npm start in production and complain about needing npm.

To reflect the fact that you can now sensibly deploy from a package (ie. be able to configure the app). Make the first thing be downloading a prebuilt package so people who only read the first part don't end up running npm start in production and complain about needing npm.
1. Wait a few seconds for the initial build to finish (the command won't
terminate: it's running a web server for you).
1. Open http://127.0.0.1:8080/ in your browser to see your newly built Vector.
1. Configure the app by modifying the `config.json` file (see below for details)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

need to copy the sample to start with?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

and should this be after the next step, since the config.json doesn't go in the tarball?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

config.json does now go in the tarball since it's fetched by the app

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hrm. Should it, though? My expectation would be that the config would not be in the tarball.

@richvdh richvdh assigned dbkr and unassigned richvdh Jun 14, 2016
@dbkr dbkr assigned richvdh and unassigned dbkr Jun 14, 2016
@dbkr
Copy link
Member Author

dbkr commented Jun 14, 2016

ptal

===========

Configure the app by modifying the `config.json` file:
You can configure the app by copying the sample and modifying the `config.json` file:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need to point out that these are in the vector subdirectory.

@richvdh richvdh assigned dbkr and unassigned richvdh Jun 15, 2016
1. Wait a few seconds for the initial build to finish (the command won't
terminate: it's running a web server for you).
1. Open http://127.0.0.1:8080/ in your browser to see your newly built Vector.
1. Configure the app by copying `config.sample.json` to `config.json` and modifying
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Repeating here since the original comment is on an outdated diff:

I'm not convinced it is correct to ship the config.json in the tarball.

OTOH that's a separate issue to what's going on here.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

True - we could put it in the root directory, although then it's unclear that it needs to be copied to the vector/ directory. Another option would be to exclude config.sample.json from the tarball explicitly.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I assume you mean config.json. The sample /should/ be shipped :)

Excluding it from the tarball seems like the best option?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, actually I did mean config.sample.json but I see what you mean: if you made a config.json before packaging, would you expect it to be in the package? Relatedly, I now can't easily un-tar a new version of vector onto my server and update the symlink as I have to copy the config.json over (unless I untar over the old directory but then I'll get stale files). I can't find anyone who's solved this nicely.

I guess excluding the config file from the tarball prevents us from accidentally shipping one we didn't intend to package, and doesn't really hurt. Probably best done in a different PR though rather than shoehorning it into here.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

agreed

@dbkr dbkr assigned richvdh and unassigned dbkr Jun 15, 2016
@richvdh richvdh merged commit d38c338 into develop Jun 15, 2016
@t3chguy t3chguy deleted the dbkr/update_readme branch May 12, 2022 08:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants